openMSX
Namespaces | Functions
view Namespace Reference

Namespaces

namespace  detail
 

Functions

template<typename Range >
constexpr auto drop (Range &&range, size_t n)
 
template<typename Range >
constexpr auto drop_back (Range &&range, size_t n)
 
template<typename Range >
constexpr auto reverse (Range &&range)
 
template<typename Range , typename UnaryOp >
constexpr auto transform (Range &&range, UnaryOp op)
 
template<typename Map >
constexpr auto keys (Map &&map)
 
template<typename Map >
constexpr auto values (Map &&map)
 
template<typename ForwardRange , typename Predicate >
auto filter (ForwardRange &&range, Predicate pred)
 
template<typename ForwardRange >
constexpr auto take (ForwardRange &&range, size_t n)
 
template<typename ... Ranges>
auto zip (Ranges &&... ranges)
 
template<typename ... Ranges>
auto zip_equal (Ranges &&... ranges)
 

Function Documentation

◆ drop()

template<typename Range >
constexpr auto view::drop ( Range &&  range,
size_t  n 
)
constexpr

◆ drop_back()

template<typename Range >
constexpr auto view::drop_back ( Range &&  range,
size_t  n 
)
constexpr

◆ filter()

template<typename ForwardRange , typename Predicate >
auto view::filter ( ForwardRange &&  range,
Predicate  pred 
)

Definition at line 538 of file view.hh.

Referenced by TEST_CASE(), and TEST_CASE().

◆ keys()

template<typename Map >
constexpr auto view::keys ( Map &&  map)
constexpr

Definition at line 525 of file view.hh.

References t, and transform().

Referenced by TEST_CASE().

◆ reverse()

template<typename Range >
constexpr auto view::reverse ( Range &&  range)
constexpr

◆ take()

template<typename ForwardRange >
constexpr auto view::take ( ForwardRange &&  range,
size_t  n 
)
constexpr

◆ transform()

template<typename Range , typename UnaryOp >
constexpr auto view::transform ( Range &&  range,
UnaryOp  op 
)
constexpr

◆ values()

template<typename Map >
constexpr auto view::values ( Map &&  map)
constexpr

Definition at line 531 of file view.hh.

References t, and transform().

Referenced by TEST_CASE().

◆ zip()

template<typename ... Ranges>
auto view::zip ( Ranges &&...  ranges)

Definition at line 551 of file view.hh.

References view::detail::zip().

Referenced by TEST_CASE(), test_zip(), and test_zip().

◆ zip_equal()

template<typename ... Ranges>
auto view::zip_equal ( Ranges &&...  ranges)