/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/set.hpp (9981B)
/*! @file Forward declares `boost::hana::set`. @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_SET_HPP #define BOOST_HANA_FWD_SET_HPP #include #include #include #include BOOST_HANA_NAMESPACE_BEGIN //! @ingroup group-datatypes //! Basic unordered container requiring unique, `Comparable` and //! `Hashable` keys. //! //! A set is an unordered container that can hold heterogeneous keys. //! A set requires (and ensures) that no duplicates are present when //! inserting new keys. //! //! @note //! The actual representation of a `hana::set` is implementation-defined. //! In particular, one should not take for granted the order of the //! template parameters and the presence of any additional constructors //! or assignment operators than what is documented. The canonical way of //! creating a `hana::set` is through `hana::make_set`. More details //! [in the tutorial](@ref tutorial-containers-types). //! //! //! Modeled concepts //! ---------------- //! 1. `Comparable`\n //! Two sets are equal iff they contain the same elements, regardless of //! the order. //! @include example/set/comparable.cpp //! //! 2. Foldable\n //! Folding a set is equivalent to folding the sequence of its values. //! However, note that the values are not required to be in any specific //! order, so using the folds provided here with an operation that is not //! both commutative and associative will yield non-deterministic behavior. //! @include example/set/foldable.cpp //! //! 3. Searchable\n //! The elements in a set act as both its keys and its values. Since the //! elements of a set are unique, searching for an element will return //! either the only element which is equal to the searched value, or //! `nothing`. Also note that `operator[]` can be used instead of the //! `at_key` function. //! @include example/set/searchable.cpp //! //! //! Conversion from any `Foldable` //! ------------------------------ //! Any `Foldable` structure can be converted into a `hana::set` with //! `to`. The elements of the structure must all be compile-time //! `Comparable`. If the structure contains duplicate elements, only //! the first occurence will appear in the resulting set. More //! specifically, conversion from a `Foldable` is equivalent to //! @code //! to(xs) == fold_left(xs, make_set(), insert) //! @endcode //! //! __Example__ //! @include example/set/to.cpp #ifdef BOOST_HANA_DOXYGEN_INVOKED template struct set { //! Default-construct a set. This constructor only exists when all the //! elements of the set are default-constructible. constexpr set() = default; //! Copy-construct a set from another set. This constructor only //! exists when all the elements of the set are copy-constructible. constexpr set(set const& other) = default; //! Move-construct a set from another set. This constructor only //! exists when all the elements of the set are move-constructible. constexpr set(set&& other) = default; //! 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::at_key` template constexpr decltype(auto) operator[](Key&& key); }; #else template struct set; #endif //! Tag representing the `hana::set` container. //! @relates hana::set struct set_tag { }; //! Function object for creating a `hana::set`. //! @relates hana::set //! //! Given zero or more values `xs...`, `make` returns a `set` //! containing those values. The values must all be compile-time //! `Comparable`, and no duplicate values may be provided. To create //! a `set` from a sequence with possible duplicates, use `to` //! instead. //! //! //! Example //! ------- //! @include example/set/make.cpp #ifdef BOOST_HANA_DOXYGEN_INVOKED template <> constexpr auto make = [](auto&& ...xs) { return set{forwarded(xs)...}; }; #endif //! Equivalent to `make`; provided for convenience. //! @relates hana::set //! //! //! Example //! ------- //! @include example/set/make.cpp constexpr auto make_set = make; //! Insert an element in a `hana::set`. //! @relates hana::set //! //! If the set already contains an element that compares equal, then //! nothing is done and the set is returned as is. //! //! //! @param set //! The set in which to insert a value. //! //! @param element //! The value to insert. It must be compile-time `Comparable`. //! //! //! Example //! ------- //! @include example/set/insert.cpp #ifdef BOOST_HANA_DOXYGEN_INVOKED constexpr auto insert = [](auto&& set, auto&& element) { return tag-dispatched; }; #endif //! Remove an element from a `hana::set`. //! @relates hana::set //! //! Returns a new set containing all the elements of the original, //! except the one comparing `equal` to the given element. If the set //! does not contain such an element, a new set equal to the original //! set is returned. //! //! //! @param set //! The set in which to remove a value. //! //! @param element //! The value to remove. It must be compile-time `Comparable`. //! //! //! Example //! ------- //! @include example/set/erase_key.cpp #ifdef BOOST_HANA_DOXYGEN_INVOKED constexpr auto erase_key = [](auto&& set, auto&& element) { return tag-dispatched; }; #endif //! Returns the union of two sets. //! @relates hana::set //! //! Given two sets `xs` and `ys`, `union_(xs, ys)` is a new set containing //! all the elements of `xs` and all the elements of `ys`, without //! duplicates. For any object `x`, the following holds: `x` is in //! `hana::union_(xs, ys)` if and only if `x` is in `xs` or `x` is in `ys`. //! //! //! @param xs, ys //! Two sets to compute the union of. //! //! //! Example //! ------- //! @include example/set/union.cpp #ifdef BOOST_HANA_DOXYGEN_INVOKED constexpr auto union_ = [](auto&& xs, auto&& ys) { return tag-dispatched; }; #endif //! Returns the intersection of two sets. //! @relates hana::set //! //! Given two sets `xs` and `ys`, `intersection(xs, ys)` is a new set //! containing exactly those elements that are present both in `xs` and //! in `ys`. //! In other words, the following holds for any object `x`: //! @code //! x ^in^ intersection(xs, ys) if and only if x ^in^ xs && x ^in^ ys //! @endcode //! //! //! @param xs, ys //! Two sets to intersect. //! //! //! Example //! ------- //! @include example/set/intersection.cpp #ifdef BOOST_HANA_DOXYGEN_INVOKED constexpr auto intersection = [](auto&& xs, auto&& ys) { return tag-dispatched; }; #endif //! Equivalent to `to`; provided for convenience. //! @relates hana::set constexpr auto to_set = to; //! Returns the set-theoretic difference of two sets. //! @relates hana::set //! //! Given two sets `xs` and `ys`, `difference(xs, ys)` is a new set //! containing all the elements of `xs` that are _not_ contained in `ys`. //! For any object `x`, the following holds: //! @code //! x ^in^ difference(xs, ys) if and only if x ^in^ xs && !(x ^in^ ys) //! @endcode //! //! //! This operation is not commutative, i.e. `difference(xs, ys)` is not //! necessarily the same as `difference(ys, xs)`. Indeed, consider the //! case where `xs` is empty and `ys` isn't. Then, `difference(xs, ys)` //! is empty but `difference(ys, xs)` is equal to `ys`. For the symmetric //! version of this operation, see `symmetric_difference`. //! //! //! @param xs //! A set param to remove values from. //! //! @param ys //! The set whose values are removed from `xs`. //! //! //! Example //! ------- //! @include example/set/difference.cpp #ifdef BOOST_HANA_DOXYGEN_INVOKED constexpr auto difference = [](auto&& xs, auto&& ys) { return tag-dispatched; }; #endif //! Returns the symmetric set-theoretic difference of two sets. //! @relates hana::set //! //! Given two sets `xs` and `ys`, `symmetric_difference(xs, ys)` is a new //! set containing all the elements of `xs` that are not contained in `ys`, //! and all the elements of `ys` that are not contained in `xs`. The //! symmetric difference of two sets satisfies the following: //! @code //! symmetric_difference(xs, ys) == union_(difference(xs, ys), difference(ys, xs)) //! @endcode //! //! //! @param xs, ys //! Two sets to compute the symmetric difference of. //! //! //! Example //! ------- //! @include example/set/symmetric_difference.cpp #ifdef BOOST_HANA_DOXYGEN_INVOKED constexpr auto symmetric_difference = [](auto&& xs, auto&& ys) { return tag-dispatched; }; #endif BOOST_HANA_NAMESPACE_END #endif // !BOOST_HANA_FWD_SET_HPP