std::experimental::ranges::tagged_tuple (3) - Linux Man Pages

std::experimental::ranges::tagged_tuple: std::experimental::ranges::tagged_tuple

NAME

std::experimental::ranges::tagged_tuple - std::experimental::ranges::tagged_tuple

Synopsis


Defined in header <experimental/ranges/tuple>
template< TaggedType... Types > (ranges TS)
using tagged_tuple = /* see below */;


Convenience alias template for naming a ranges::tagged wrapping a std::tuple.
A TaggedType is a function type S(T), where S is a TagSpecifier and T is the type of the element.
tagged_tuple<S1(T1), ..., SN(TN)> is an alias for ranges::tagged<std::tuple<T1, ..., TN>, S1, ..., SN>.

Notes


Because a function type is used to "glue" the tag specifier and the corresponding element type together, the usual parameter type adjustments apply. In particular, top-level cv-qualifiers are removed and array types are adjusted to pointers: tagged_tuple<tag::in(const int* const), tag::out(int[])> is ranges::tagged<std::tuple<const int*, int*>, tag::in, tag::out>.

See also


                  specifies that a type represents a tag specifier and its element type
TaggedType (concept)
                  augument a tuple-like type with named accessors
tagged (class template)
                  alias template for a tagged std::pair
tagged_pair (alias template)
                  convenience function for creating a tagged_pair
make_tagged_pair (function template)
                  convenience function for creating a tagged_tuple
make_tagged_tuple (function template)


in
in1
in2
out
out1 tag specifiers for use with ranges::tagged
out2 (class)
fun
min
max
begin
end