Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::adaptors Namespace Reference

Classes

struct  copied
 
struct  indexed
 
struct  sliced
 
class  sliced_range
 
struct  type_erased
 

Functions

template<class ForwardRng , class BinPredicate >
adjacent_filtered_range
< BinPredicate, ForwardRng,
true > 
adjacent_filter (ForwardRng &rng, BinPredicate filter_pred)
 
template<class ForwardRng , class BinPredicate >
adjacent_filtered_range
< BinPredicate, const
ForwardRng, true > 
adjacent_filter (const ForwardRng &rng, BinPredicate filter_pred)
 
template<class CopyableRandomAccessRange >
CopyableRandomAccessRange operator| (const CopyableRandomAccessRange &r, const copied &f)
 
template<class CopyableRandomAccessRange >
CopyableRandomAccessRange copy (const CopyableRandomAccessRange &rng, std::size_t t, std::size_t u)
 
template<class ForwardRange , class Predicate >
filtered_range< Predicate,
ForwardRange > 
filter (ForwardRange &rng, Predicate filter_pred)
 
template<class ForwardRange , class Predicate >
filtered_range< Predicate,
const ForwardRange > 
filter (const ForwardRange &rng, Predicate filter_pred)
 
template<typename Sep , typename Prefix , typename Postfix >
range_detail::formatted_holder
< Sep, Prefix, Postfix > 
formatted (const Sep &sep, const Prefix &prefix, const Postfix &postfix)
 
template<typename Sep , typename Prefix >
range_detail::formatted_holder
< Sep, Prefix, char > 
formatted (const Sep &sep, const Prefix &prefix)
 
template<typename Sep >
range_detail::formatted_holder
< Sep, char, char > 
formatted (const Sep &sep)
 
range_detail::formatted_holder
< char, char, char > 
formatted ()
 
template<typename SinglePassRange , typename Sep , typename Prefix , typename Postfix >
boost::range_detail::formatted_range
< typename
boost::range_iterator< const
SinglePassRange >::type, Sep,
Prefix, Postfix > 
format (const SinglePassRange &rng, const Sep &sep, const Prefix &prefix, const Postfix &postfix)
 
template<typename SinglePassRange , typename Sep , typename Prefix >
boost::range_detail::formatted_range
< typename
boost::range_iterator< const
SinglePassRange >::type, Sep,
Prefix, char > 
format (const SinglePassRange &rng, const Sep &sep, const Prefix &prefix)
 
template<typename SinglePassRange , typename Sep >
boost::range_detail::formatted_range
< typename
boost::range_iterator< const
SinglePassRange >::type, Sep,
char, char > 
format (const SinglePassRange &rng, const Sep &sep)
 
template<typename SinglePassRange >
boost::range_detail::formatted_range
< typename
boost::range_iterator< const
SinglePassRange >::type, char,
char, char > 
format (const SinglePassRange &rng)
 
template<class SinglePassRange >
indexed_range< SinglePassRange > operator| (SinglePassRange &r, indexed e)
 
template<class SinglePassRange >
indexed_range< const
SinglePassRange > 
operator| (const SinglePassRange &r, indexed e)
 
template<class SinglePassRange >
indexed_range< SinglePassRange > index (SinglePassRange &rng, typename range_difference< SinglePassRange >::type index_value=0)
 
template<class SinglePassRange >
indexed_range< const
SinglePassRange > 
index (const SinglePassRange &rng, typename range_difference< const SinglePassRange >::type index_value=0)
 
template<class SinglePassRange >
indirected_range< SinglePassRange > indirect (SinglePassRange &rng)
 
template<class SinglePassRange >
indirected_range< const
SinglePassRange > 
indirect (const SinglePassRange &rng)
 
template<class StdPairRange >
select_first_range< StdPairRange > keys (const StdPairRange &rng)
 
template<class StdPairRange >
select_second_const_range
< StdPairRange > 
values (const StdPairRange &rng)
 
template<class StdPairRange >
select_second_mutable_range
< StdPairRange > 
values (StdPairRange &rng)
 
template<class SinglePassRange >
replaced_range< SinglePassRange > replace (SinglePassRange &rng, BOOST_DEDUCED_TYPENAME range_value< SinglePassRange >::type from, BOOST_DEDUCED_TYPENAME range_value< SinglePassRange >::type to)
 
template<class SinglePassRange >
replaced_range< const
SinglePassRange > 
replace (const SinglePassRange &rng, BOOST_DEDUCED_TYPENAME range_value< SinglePassRange >::type from, BOOST_DEDUCED_TYPENAME range_value< SinglePassRange >::type to)
 
template<class Pred , class SinglePassRange >
replaced_if_range< Pred,
SinglePassRange > 
replace_if (SinglePassRange &rng, Pred pred, BOOST_DEDUCED_TYPENAME range_value< SinglePassRange >::type to)
 
template<class Pred , class SinglePassRange >
replaced_if_range< Pred, const
SinglePassRange > 
replace_if (const SinglePassRange &rng, Pred pred, BOOST_DEDUCED_TYPENAME range_value< const SinglePassRange >::type to)
 
template<class BidirectionalRange >
reversed_range
< BidirectionalRange > 
reverse (BidirectionalRange &rng)
 
template<class BidirectionalRange >
reversed_range< const
BidirectionalRange > 
reverse (const BidirectionalRange &rng)
 
template<class RandomAccessRange >
sliced_range< RandomAccessRange > slice (RandomAccessRange &rng, std::size_t t, std::size_t u)
 
template<class RandomAccessRange >
iterator_range
< BOOST_DEDUCED_TYPENAME
range_iterator< const
RandomAccessRange >::type
slice (const RandomAccessRange &rng, std::size_t t, std::size_t u)
 
template<class RandomAccessRange >
sliced_range< RandomAccessRange > operator| (RandomAccessRange &r, const sliced &f)
 
template<class RandomAccessRange >
sliced_range< const
RandomAccessRange > 
operator| (const RandomAccessRange &r, const sliced &f)
 
template<class Range , class Difference >
strided_range< Range > stride (Range &rng, Difference step)
 
template<class Range , class Difference >
strided_range< const Range > stride (const Range &rng, Difference step)
 
template<class BidirectionalRange , class Regex , class Submatch , class Flag >
tokenized_range
< BidirectionalRange > 
tokenize (BidirectionalRange &rng, const Regex &reg, const Submatch &sub, Flag f)
 
template<class BidirectionalRange , class Regex , class Submatch , class Flag >
tokenized_range< const
BidirectionalRange > 
tokenize (const BidirectionalRange &rng, const Regex &reg, const Submatch &sub, Flag f)
 
template<class UnaryFunction , class SinglePassRange >
transformed_range
< UnaryFunction,
SinglePassRange > 
transform (SinglePassRange &rng, UnaryFunction fn)
 
template<class UnaryFunction , class SinglePassRange >
transformed_range
< UnaryFunction, const
SinglePassRange > 
transform (const SinglePassRange &rng, UnaryFunction fn)
 
template<class SinglePassRange , class Value , class Traversal , class Reference , class Difference , class Buffer >
any_range_type_generator
< SinglePassRange, Value,
Traversal, Reference,
Difference, Buffer >::type 
operator| (SinglePassRange &rng, type_erased< Value, Traversal, Reference, Difference, Buffer >)
 
template<class SinglePassRange , class Value , class Traversal , class Reference , class Difference , class Buffer >
any_range_type_generator
< const SinglePassRange, Value,
Traversal, Reference,
Difference, Buffer >::type 
operator| (const SinglePassRange &rng, type_erased< Value, Traversal, Reference, Difference, Buffer >)
 
template<class SinglePassRange , class Value , class Traversal , class Reference , class Difference , class Buffer >
any_range_type_generator
< SinglePassRange, Value,
Traversal, Reference,
Difference, Buffer >::type 
type_erase (SinglePassRange &rng, type_erased< Value, Traversal, Reference, Difference, Buffer >=type_erased<>())
 
template<class SinglePassRange , class Value , class Traversal , class Reference , class Difference , class Buffer >
any_range_type_generator
< const SinglePassRange, Value,
Traversal, Reference,
Difference, Buffer >::type 
type_erase (const SinglePassRange &rng, type_erased< Value, Traversal, Reference, Difference, Buffer >=type_erased<>())
 
template<class ForwardRange >
uniqued_range< ForwardRange > unique (ForwardRange &rng)
 
template<class ForwardRange >
uniqued_range< const ForwardRange > unique (const ForwardRange &rng)
 

Function Documentation

template<class ForwardRng , class BinPredicate >
adjacent_filtered_range<BinPredicate, ForwardRng, true> boost::adaptors::adjacent_filter ( ForwardRng &  rng,
BinPredicate  filter_pred 
)
inline
template<class ForwardRng , class BinPredicate >
adjacent_filtered_range<BinPredicate, const ForwardRng, true> boost::adaptors::adjacent_filter ( const ForwardRng &  rng,
BinPredicate  filter_pred 
)
inline
template<class CopyableRandomAccessRange >
CopyableRandomAccessRange boost::adaptors::copy ( const CopyableRandomAccessRange &  rng,
std::size_t  t,
std::size_t  u 
)
inline
template<class ForwardRange , class Predicate >
filtered_range<Predicate, ForwardRange> boost::adaptors::filter ( ForwardRange &  rng,
Predicate  filter_pred 
)
inline
template<class ForwardRange , class Predicate >
filtered_range<Predicate, const ForwardRange> boost::adaptors::filter ( const ForwardRange &  rng,
Predicate  filter_pred 
)
inline
template<typename SinglePassRange , typename Sep , typename Prefix , typename Postfix >
boost::range_detail::formatted_range< typename boost::range_iterator<const SinglePassRange>::type, Sep, Prefix, Postfix> boost::adaptors::format ( const SinglePassRange &  rng,
const Sep &  sep,
const Prefix &  prefix,
const Postfix &  postfix 
)
inline
template<typename SinglePassRange , typename Sep , typename Prefix >
boost::range_detail::formatted_range< typename boost::range_iterator<const SinglePassRange>::type, Sep, Prefix, char> boost::adaptors::format ( const SinglePassRange &  rng,
const Sep &  sep,
const Prefix &  prefix 
)
inline
template<typename SinglePassRange , typename Sep >
boost::range_detail::formatted_range< typename boost::range_iterator<const SinglePassRange>::type, Sep, char, char> boost::adaptors::format ( const SinglePassRange &  rng,
const Sep &  sep 
)
inline
template<typename SinglePassRange >
boost::range_detail::formatted_range< typename boost::range_iterator<const SinglePassRange>::type, char, char, char> boost::adaptors::format ( const SinglePassRange &  rng)
inline
template<typename Sep , typename Prefix , typename Postfix >
range_detail::formatted_holder<Sep, Prefix, Postfix> boost::adaptors::formatted ( const Sep &  sep,
const Prefix &  prefix,
const Postfix &  postfix 
)
template<typename Sep , typename Prefix >
range_detail::formatted_holder<Sep, Prefix, char> boost::adaptors::formatted ( const Sep &  sep,
const Prefix &  prefix 
)
template<typename Sep >
range_detail::formatted_holder<Sep, char, char> boost::adaptors::formatted ( const Sep &  sep)
range_detail::formatted_holder<char, char, char> boost::adaptors::formatted ( )
inline
template<class SinglePassRange >
indexed_range<SinglePassRange> boost::adaptors::index ( SinglePassRange &  rng,
typename range_difference< SinglePassRange >::type  index_value = 0 
)
inline
template<class SinglePassRange >
indexed_range<const SinglePassRange> boost::adaptors::index ( const SinglePassRange &  rng,
typename range_difference< const SinglePassRange >::type  index_value = 0 
)
inline
template<class SinglePassRange >
indirected_range<SinglePassRange> boost::adaptors::indirect ( SinglePassRange &  rng)
inline
template<class SinglePassRange >
indirected_range<const SinglePassRange> boost::adaptors::indirect ( const SinglePassRange &  rng)
inline
template<class StdPairRange >
select_first_range<StdPairRange> boost::adaptors::keys ( const StdPairRange &  rng)
inline
template<class CopyableRandomAccessRange >
CopyableRandomAccessRange boost::adaptors::operator| ( const CopyableRandomAccessRange &  r,
const copied &  f 
)
inline
template<class SinglePassRange , class Value , class Traversal , class Reference , class Difference , class Buffer >
any_range_type_generator< SinglePassRange , Value , Traversal , Reference , Difference , Buffer >::type boost::adaptors::operator| ( SinglePassRange &  rng,
type_erased< Value, Traversal, Reference, Difference, Buffer >   
)
template<class RandomAccessRange >
sliced_range<RandomAccessRange> boost::adaptors::operator| ( RandomAccessRange &  r,
const sliced &  f 
)
inline
template<class RandomAccessRange >
sliced_range<const RandomAccessRange> boost::adaptors::operator| ( const RandomAccessRange &  r,
const sliced &  f 
)
inline
template<class SinglePassRange , class Value , class Traversal , class Reference , class Difference , class Buffer >
any_range_type_generator< const SinglePassRange , Value , Traversal , Reference , Difference , Buffer >::type boost::adaptors::operator| ( const SinglePassRange &  rng,
type_erased< Value, Traversal, Reference, Difference, Buffer >   
)
template<class SinglePassRange >
indexed_range<SinglePassRange> boost::adaptors::operator| ( SinglePassRange &  r,
indexed  e 
)
inline
template<class SinglePassRange >
indexed_range<const SinglePassRange> boost::adaptors::operator| ( const SinglePassRange &  r,
indexed  e 
)
inline
template<class SinglePassRange >
replaced_range<SinglePassRange> boost::adaptors::replace ( SinglePassRange &  rng,
BOOST_DEDUCED_TYPENAME range_value< SinglePassRange >::type  from,
BOOST_DEDUCED_TYPENAME range_value< SinglePassRange >::type  to 
)
inline
template<class SinglePassRange >
replaced_range<const SinglePassRange> boost::adaptors::replace ( const SinglePassRange &  rng,
BOOST_DEDUCED_TYPENAME range_value< SinglePassRange >::type  from,
BOOST_DEDUCED_TYPENAME range_value< SinglePassRange >::type  to 
)
inline
template<class Pred , class SinglePassRange >
replaced_if_range<Pred, SinglePassRange> boost::adaptors::replace_if ( SinglePassRange &  rng,
Pred  pred,
BOOST_DEDUCED_TYPENAME range_value< SinglePassRange >::type  to 
)
inline
template<class Pred , class SinglePassRange >
replaced_if_range<Pred, const SinglePassRange> boost::adaptors::replace_if ( const SinglePassRange &  rng,
Pred  pred,
BOOST_DEDUCED_TYPENAME range_value< const SinglePassRange >::type  to 
)
inline
template<class BidirectionalRange >
reversed_range<BidirectionalRange> boost::adaptors::reverse ( BidirectionalRange &  rng)
inline
template<class BidirectionalRange >
reversed_range<const BidirectionalRange> boost::adaptors::reverse ( const BidirectionalRange &  rng)
inline
template<class RandomAccessRange >
sliced_range<RandomAccessRange> boost::adaptors::slice ( RandomAccessRange &  rng,
std::size_t  t,
std::size_t  u 
)
inline
template<class RandomAccessRange >
iterator_range< BOOST_DEDUCED_TYPENAME range_iterator<const RandomAccessRange>::type > boost::adaptors::slice ( const RandomAccessRange &  rng,
std::size_t  t,
std::size_t  u 
)
inline
template<class BidirectionalRange , class Regex , class Submatch , class Flag >
tokenized_range<BidirectionalRange> boost::adaptors::tokenize ( BidirectionalRange &  rng,
const Regex &  reg,
const Submatch &  sub,
Flag  f 
)
inline
template<class BidirectionalRange , class Regex , class Submatch , class Flag >
tokenized_range<const BidirectionalRange> boost::adaptors::tokenize ( const BidirectionalRange &  rng,
const Regex &  reg,
const Submatch &  sub,
Flag  f 
)
inline
template<class UnaryFunction , class SinglePassRange >
transformed_range<UnaryFunction, SinglePassRange> boost::adaptors::transform ( SinglePassRange &  rng,
UnaryFunction  fn 
)
inline
template<class UnaryFunction , class SinglePassRange >
transformed_range<UnaryFunction, const SinglePassRange> boost::adaptors::transform ( const SinglePassRange &  rng,
UnaryFunction  fn 
)
inline
template<class SinglePassRange , class Value , class Traversal , class Reference , class Difference , class Buffer >
any_range_type_generator< SinglePassRange , Value , Traversal , Reference , Difference , Buffer >::type boost::adaptors::type_erase ( SinglePassRange &  rng,
type_erased< Value, Traversal, Reference, Difference, Buffer >  = type_erased<>() 
)
template<class SinglePassRange , class Value , class Traversal , class Reference , class Difference , class Buffer >
any_range_type_generator< const SinglePassRange , Value , Traversal , Reference , Difference , Buffer >::type boost::adaptors::type_erase ( const SinglePassRange &  rng,
type_erased< Value, Traversal, Reference, Difference, Buffer >  = type_erased<>() 
)
template<class ForwardRange >
uniqued_range<ForwardRange> boost::adaptors::unique ( ForwardRange &  rng)
inline
template<class ForwardRange >
uniqued_range<const ForwardRange> boost::adaptors::unique ( const ForwardRange &  rng)
inline
template<class StdPairRange >
select_second_const_range<StdPairRange> boost::adaptors::values ( const StdPairRange &  rng)
inline
template<class StdPairRange >
select_second_mutable_range<StdPairRange> boost::adaptors::values ( StdPairRange &  rng)
inline