mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
sprout/variant.hpp 追加
sprout/type.hpp 追加
This commit is contained in:
parent
488df1e685
commit
b6bf03c4ed
30 changed files with 905 additions and 102 deletions
|
@ -229,7 +229,7 @@ namespace sprout {
|
|||
: inherited_type(static_cast<sprout::tuples::detail::tuple_impl<0, UTypes...>&&>(t))
|
||||
{}
|
||||
// tuple assignment
|
||||
tuple& operator=(const tuple& rhs) {
|
||||
tuple& operator=(tuple const& rhs) {
|
||||
static_cast<inherited_type&>(*this) = rhs;
|
||||
return *this;
|
||||
}
|
||||
|
@ -248,7 +248,7 @@ namespace sprout {
|
|||
return *this;
|
||||
}
|
||||
// tuple swap
|
||||
void swap(tuple& other) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(other.swap(other))) {
|
||||
void swap(tuple& other) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(inherited_type::swap(other))) {
|
||||
inherited_type::swap(other);
|
||||
}
|
||||
};
|
||||
|
@ -426,4 +426,6 @@ namespace sprout {
|
|||
using sprout::tuples::get;
|
||||
} // namespace sprout
|
||||
|
||||
#include <sprout/tuple/tuple_comparison.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_TUPLE_TUPLE_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue