|
| template<detray::ranges::input_range deduced_sequence_t> |
| constexpr | pick (deduced_sequence_t &&seq) |
| | Build an adaptor that will select the supplied indices from a later range.
|
| template<detray::ranges::range range_t, detray::ranges::input_range deduced_sequence_t> |
| constexpr | pick (range_t &&range, deduced_sequence_t &&seq) |
| | Construct the selection view immediately from both inputs.
|
template<detray::ranges::range range_t>
requires (!std::same_as<sequence_t, std::remove_cvref_t<sequence_t>> || std::is_pointer_v<sequence_t>) |
| constexpr auto | operator() (range_t &&rng) |
| | Call operator for range composition.
|
template<detray::ranges::range range_t>
requires (std::same_as<sequence_t, std::remove_cvref_t<sequence_t>> && !std::is_pointer_v<sequence_t>) |
| constexpr auto | operator() (range_t &&rng) && |
| | Call operator for range composition - move semantics.
|
| pick & | operator= (const pick &other) |
| | Copy assignment operator.
|
| constexpr decltype(auto) | back () const |
| | Return a reference to the last element.
|
| constexpr auto | data () const |
| | Return a pointer to the first element, or null for an empty view.
|
| constexpr auto | empty () const -> bool |
| | Check whether the view contains no elements.
|
| constexpr decltype(auto) | front () const |
| | Return a reference to the first element.
|
| constexpr | operator bool () const |
| | Test whether the view contains at least one element.
|
| constexpr decltype(auto) | operator[] (const dindex i) const |
| | Subscript operator that takes detray dindex.
|
| constexpr auto | size () const |
| | Return the number of elements in the view.
|
template<std::input_iterator range_itr_t,
detray::ranges::input_range sequence_t>
struct detray::ranges::views::pick< range_itr_t, sequence_t >
Range adaptor that selects indexed elements from an input range.