constructor · 6 overloads
std::tuple<>::tuple
- Header
<tuple>also in<condition_variable>,<deque>,<execution>,<flat_map>,<flat_set>and 25 more- Draft
- [tuple.syn]
- Scope
std::tuple<>- cppreference
- <tuple> nearest page
Constructors
Overloads
- (1)
constexpr tuple() noexcept = default; - (2)
constexpr tuple(const tuple<>& other) = default; - (3)
template</* implementation-defined */ UTuple> requires different-from<UTuple, tuple> && (tuple_size_v<remove_cvref_t<UTuple>> == 0) && (!is-subrange<remove_cvref_t<UTuple>>) constexpr tuple(UTuple&& value) noexcept; - (4)
template<class Alloc> constexpr tuple(allocator_arg_t, const Alloc&) noexcept; - (5)
template<class Alloc> constexpr tuple(allocator_arg_t, const Alloc&, const tuple<>&) noexcept; - (6)
template<class Alloc, /* implementation-defined */ UTuple> requires different-from<UTuple, tuple> && (tuple_size_v<remove_cvref_t<UTuple>> == 0) && (!is-subrange<remove_cvref_t<UTuple>>) constexpr tuple(allocator_arg_t, const Alloc&, UTuple&&) noexcept;