/usr/include/boost/hana/fwd
NameSizeModeActions
concept/-0755rm
core/-0755rm
accessors.hpp15190644editdlrm
adapt_adt.hpp15960644editdlrm
adapt_struct.hpp15860644editdlrm
adjust.hpp17870644editdlrm
adjust_if.hpp22750644editdlrm
all.hpp11850644editdlrm
all_of.hpp14760644editdlrm
and.hpp14410644editdlrm
any.hpp11780644editdlrm
any_of.hpp14450644editdlrm
ap.hpp26490644editdlrm
append.hpp20440644editdlrm
at.hpp28240644editdlrm
at_key.hpp23340644editdlrm
back.hpp13550644editdlrm
basic_tuple.hpp22920644editdlrm
bool.hpp3840644editdlrm
cartesian_product.hpp18370644editdlrm
chain.hpp19640644editdlrm
comparing.hpp19240644editdlrm
concat.hpp18380644editdlrm
contains.hpp23780644editdlrm
core.hpp6190644editdlrm
count.hpp16830644editdlrm
count_if.hpp16340644editdlrm
cycle.hpp24600644editdlrm
define_struct.hpp15820644editdlrm
difference.hpp8540644editdlrm
div.hpp17720644editdlrm
drop_back.hpp20160644editdlrm
drop_front.hpp22680644editdlrm
drop_front_exactly.hpp24090644editdlrm
drop_while.hpp20470644editdlrm
duplicate.hpp15740644editdlrm
empty.hpp13060644editdlrm
equal.hpp25840644editdlrm
erase_key.hpp8760644editdlrm
eval.hpp20120644editdlrm
eval_if.hpp64530644editdlrm
extend.hpp17330644editdlrm
extract.hpp15470644editdlrm
fill.hpp14120644editdlrm
filter.hpp26000644editdlrm
find.hpp17780644editdlrm
find_if.hpp17340644editdlrm
first.hpp14700644editdlrm
flatten.hpp17270644editdlrm
fold.hpp10660644editdlrm
fold_left.hpp30040644editdlrm
fold_right.hpp31930644editdlrm
for_each.hpp15130644editdlrm
front.hpp14010644editdlrm
fuse.hpp15800644editdlrm
greater.hpp14640644editdlrm
greater_equal.hpp15630644editdlrm
group.hpp38720644editdlrm
hash.hpp21580644editdlrm
if.hpp16510644editdlrm
index_if.hpp18460644editdlrm
insert.hpp16950644editdlrm
insert_range.hpp17780644editdlrm
integral_constant.hpp47910644editdlrm
intersection.hpp8720644editdlrm
intersperse.hpp17800644editdlrm
is_disjoint.hpp14450644editdlrm
is_empty.hpp14530644editdlrm
is_subset.hpp28000644editdlrm
keys.hpp13380644editdlrm
lazy.hpp45930644editdlrm
length.hpp14150644editdlrm
less.hpp13940644editdlrm
less_equal.hpp14930644editdlrm
lexicographical_compare.hpp38190644editdlrm
lift.hpp16860644editdlrm
map.hpp131420644editdlrm
max.hpp11500644editdlrm
maximum.hpp43440644editdlrm
members.hpp12560644editdlrm
min.hpp15250644editdlrm
minimum.hpp43340644editdlrm
minus.hpp21010644editdlrm
mod.hpp19700644editdlrm
monadic_compose.hpp22960644editdlrm
monadic_fold_left.hpp40160644editdlrm
monadic_fold_right.hpp41740644editdlrm
mult.hpp19330644editdlrm
negate.hpp10220644editdlrm
none.hpp12170644editdlrm
none_of.hpp14980644editdlrm
not.hpp12200644editdlrm
not_equal.hpp21150644editdlrm
one.hpp11160644editdlrm
optional.hpp187880644editdlrm
or.hpp14260644editdlrm
ordering.hpp19020644editdlrm
pair.hpp57680644editdlrm
partition.hpp27310644editdlrm
permutations.hpp15630644editdlrm
plus.hpp19440644editdlrm
power.hpp15600644editdlrm
prefix.hpp20970644editdlrm
prepend.hpp24150644editdlrm
product.hpp26360644editdlrm
range.hpp54800644editdlrm
remove.hpp21770644editdlrm
remove_at.hpp23710644editdlrm
remove_if.hpp21550644editdlrm
remove_range.hpp27450644editdlrm
repeat.hpp16240644editdlrm
replace.hpp18420644editdlrm
replace_if.hpp18530644editdlrm
replicate.hpp25110644editdlrm
reverse.hpp11870644editdlrm
reverse_fold.hpp28860644editdlrm
scan_left.hpp37120644editdlrm
scan_right.hpp38110644editdlrm
second.hpp14770644editdlrm
set.hpp99810644editdlrm
size.hpp9290644editdlrm
slice.hpp35240644editdlrm
sort.hpp37700644editdlrm
span.hpp28580644editdlrm
string.hpp107940644editdlrm
suffix.hpp20810644editdlrm
sum.hpp32530644editdlrm
symmetric_difference.hpp9440644editdlrm
take_back.hpp21780644editdlrm
take_front.hpp22310644editdlrm
take_while.hpp16920644editdlrm
tap.hpp21830644editdlrm
then.hpp14200644editdlrm
transform.hpp14670644editdlrm
tuple.hpp85540644editdlrm
type.hpp198480644editdlrm
unfold_left.hpp25460644editdlrm
unfold_right.hpp25690644editdlrm
union.hpp8110644editdlrm
unique.hpp33370644editdlrm
unpack.hpp35600644editdlrm
value.hpp31590644editdlrm
while.hpp24320644editdlrm
zero.hpp10950644editdlrm
zip.hpp19180644editdlrm
zip_shortest.hpp20390644editdlrm
zip_shortest_with.hpp21630644editdlrm
zip_with.hpp20420644editdlrm
Edit: /usr/include/boost/hana/fwd/tuple.hpp (8554B)
/*! @file Forward declares `boost::hana::tuple`. @copyright Louis Dionne 2013-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_FWD_TUPLE_HPP #define BOOST_HANA_FWD_TUPLE_HPP #include #include #include #include #include BOOST_HANA_NAMESPACE_BEGIN //! @ingroup group-datatypes //! General purpose index-based heterogeneous sequence with a fixed length. //! //! The tuple is the bread and butter for static metaprogramming. //! Conceptually, it is like a `std::tuple`; it is a container able //! of holding objects of different types and whose size is fixed at //! compile-time. However, Hana's tuple provides much more functionality //! than its `std` counterpart, and it is also much more efficient than //! all standard library implementations tested so far. //! //! Tuples are index-based sequences. If you need an associative //! sequence with a key-based access, then you should consider //! `hana::map` or `hana::set` instead. //! //! @note //! When you use a container, remember not to make assumptions about its //! representation, unless the documentation gives you those guarantees. //! More details [in the tutorial](@ref tutorial-containers-types). //! //! //! Modeled concepts //! ---------------- //! `Sequence`, and all the concepts it refines //! //! //! Provided operators //! ------------------ //! For convenience, the following operators are provided: //! @code //! xs == ys -> equal(xs, ys) //! xs != ys -> not_equal(xs, ys) //! //! xs < ys -> less(xs, ys) //! xs <= ys -> less_equal(xs, ys) //! xs > ys -> greater(xs, ys) //! xs >= ys -> greater_equal(xs, ys) //! //! xs | f -> chain(xs, f) //! //! xs[n] -> at(xs, n) //! @endcode //! //! //! Example //! ------- //! @include example/tuple/tuple.cpp #ifdef BOOST_HANA_DOXYGEN_INVOKED template struct tuple { //! Default constructs the `tuple`. Only exists when all the elements //! of the tuple are default constructible. constexpr tuple(); //! Initialize each element of the tuple with the corresponding element //! from `xn...`. Only exists when all the elements of the tuple are //! copy-constructible. //! //! @note //! Unlike the corresponding constructor for `std::tuple`, this //! constructor is not explicit. This allows returning a tuple //! from a function with the brace-initialization syntax. constexpr tuple(Xn const& ...xn); //! Initialize each element of the tuple by perfect-forwarding the //! corresponding element in `yn...`. Only exists when all the //! elements of the created tuple are constructible from the //! corresponding perfect-forwarded value. //! //! @note //! Unlike the corresponding constructor for `std::tuple`, this //! constructor is not explicit. This allows returning a tuple //! from a function with the brace-initialization syntax. template constexpr tuple(Yn&& ...yn); //! Copy-initialize a tuple from another tuple. Only exists when all //! the elements of the constructed tuple are copy-constructible from //! the corresponding element in the source tuple. template constexpr tuple(tuple const& other); //! Move-initialize a tuple from another tuple. Only exists when all //! the elements of the constructed tuple are move-constructible from //! the corresponding element in the source tuple. template constexpr tuple(tuple&& other); //! Assign a tuple to another tuple. Only exists when all the elements //! of the destination tuple are assignable from the corresponding //! element in the source tuple. template constexpr tuple& operator=(tuple const& other); //! Move-assign a tuple to another tuple. Only exists when all the //! elements of the destination tuple are move-assignable from the //! corresponding element in the source tuple. template constexpr tuple& operator=(tuple&& other); //! Equivalent to `hana::chain`. template friend constexpr auto operator|(tuple, F); //! Equivalent to `hana::equal` template friend constexpr auto operator==(X&& x, Y&& y); //! Equivalent to `hana::not_equal` template friend constexpr auto operator!=(X&& x, Y&& y); //! Equivalent to `hana::less` template friend constexpr auto operator<(X&& x, Y&& y); //! Equivalent to `hana::greater` template friend constexpr auto operator>(X&& x, Y&& y); //! Equivalent to `hana::less_equal` template friend constexpr auto operator<=(X&& x, Y&& y); //! Equivalent to `hana::greater_equal` template friend constexpr auto operator>=(X&& x, Y&& y); //! Equivalent to `hana::at` template constexpr decltype(auto) operator[](N&& n); }; #else template struct tuple; #endif //! Tag representing `hana::tuple`s. //! @related tuple struct tuple_tag { }; #ifdef BOOST_HANA_DOXYGEN_INVOKED //! Function object for creating a `tuple`. //! @relates hana::tuple //! //! Given zero or more objects `xs...`, `make` returns a new tuple //! containing those objects. The elements are held by value inside the //! resulting tuple, and they are hence copied or moved in. This is //! analogous to `std::make_tuple` for creating Hana tuples. //! //! //! Example //! ------- //! @include example/tuple/make.cpp template <> constexpr auto make = [](auto&& ...xs) { return tuple...>{forwarded(xs)...}; }; #endif //! Alias to `make`; provided for convenience. //! @relates hana::tuple constexpr auto make_tuple = make; //! Equivalent to `to`; provided for convenience. //! @relates hana::tuple constexpr auto to_tuple = to; //! Create a tuple specialized for holding `hana::type`s. //! @relates hana::tuple //! //! This is functionally equivalent to `make(type_c...)`, except //! that using `tuple_t` allows the library to perform some compile-time //! optimizations. Also note that the type of the objects returned by //! `tuple_t` and an equivalent call to `make` may differ. //! //! //! Example //! ------- //! @include example/tuple/tuple_t.cpp #ifdef BOOST_HANA_DOXYGEN_INVOKED template constexpr implementation_defined tuple_t{}; #else template constexpr hana::tuple...> tuple_t{}; #endif //! Create a tuple specialized for holding `hana::integral_constant`s. //! @relates hana::tuple //! //! This is functionally equivalent to `make(integral_c...)`, //! except that using `tuple_c` allows the library to perform some //! compile-time optimizations. Also note that the type of the objects //! returned by `tuple_c` and an equivalent call to `make` may differ. //! //! //! Example //! ------- //! @include example/tuple/tuple_c.cpp #ifdef BOOST_HANA_DOXYGEN_INVOKED template constexpr implementation_defined tuple_c{}; #else template constexpr hana::tuple...> tuple_c{}; #endif BOOST_HANA_NAMESPACE_END #endif // !BOOST_HANA_FWD_TUPLE_HPP