Data Structures | |
| struct | DynamicExtent |
| Numeric wrapping type denoting the dynamic nature of a size. More... | |
| class | Span |
| class | Span< T, DynamicExtent::value > |
| Lightweight view over a contiguous sequence of objects. More... | |
Typedefs | |
| typedef Span< char const > | ConstBuffer |
| typedef Span< char > | MutableBuffer |
Functions | |
| template<typename T , class Predicate > | |
| bool | all_of (const Dtk_tab< T > &tab, Predicate Pred) |
| Test condition on all elements in range, and returns true if pred returns true for all the elements in the range [first,last] or if the range is empty, and false otherwise. More... | |
| template<class InputIterator , class Predicate > | |
| bool | all_of (InputIterator first, InputIterator last, Predicate Pred) |
| Test condition on all elements in range, and returns true if pred returns true for all the elements in the range [first,last] or if the range is empty, and false otherwise. More... | |
| template<typename T , class Predicate > | |
| bool | any_of (const Dtk_tab< T > &tab, Predicate Pred) |
| Test if any element in range fulfills condition, returns true if pred returns true for any of the elements in the range [first,last], and false otherwise or if the range is empty. More... | |
| template<class InputIterator , class Predicate > | |
| bool | any_of (InputIterator first, InputIterator last, Predicate Pred) |
| Test if any element in range fulfills condition, returns true if pred returns true for any of the elements in the range [first,last], and false otherwise or if the range is empty. More... | |
| template<class Range > | |
| auto | as_buffer (Range &&range) -> decltype(as_buffer(std::forward< Range >(range).data(), std::forward< Range >(range).size())) |
| template<class T > | |
| auto | as_buffer (T *data, std::size_t n) DTK_NOEXCEPT -> MutableBuffer |
| template<class T > | |
| auto | as_buffer (T const *data, std::size_t n) DTK_NOEXCEPT -> ConstBuffer |
| template<class Range > | |
| auto | as_const_buffer (Range &&range) -> ConstBuffer |
| template<class T > | |
| auto | as_const_buffer (T *data, std::size_t n) DTK_NOEXCEPT -> ConstBuffer |
| template<class T > | |
| auto | as_const_buffer (T const *data, std::size_t n) DTK_NOEXCEPT -> ConstBuffer |
| template<class Range > | |
| auto | as_const_span (Range &&range) -> Span< typename std::add_const< typename std::remove_pointer< decltype(std::forward< Range >(range).data())>::type >::type > |
| template<class T > | |
| auto | as_const_span (T *data, std::size_t n) DTK_NOEXCEPT -> Span< T const > |
| template<class T > | |
| auto | as_const_span (T const *data, std::size_t n) DTK_NOEXCEPT -> Span< T const > |
| template<class Range > | |
| auto | as_span (Range &&range) -> Span< typename std::remove_pointer< decltype(std::forward< Range >(range).data())>::type > |
| template<class T > | |
| auto | as_span (T *data, std::size_t n) DTK_NOEXCEPT -> Span< T > |
| template<class T > | |
| auto | as_span (T const *data, std::size_t n) DTK_NOEXCEPT -> Span< T const > |
| template<typename T , class Predicate > | |
| bool | none_of (const Dtk_tab< T > &tab, Predicate Pred) |
| Test if no elements fulfill condition, returns true if pred returns false for all the elements in the range [first,last] or if the range is empty, and false otherwise. More... | |
| template<class InputIterator , class Predicate > | |
| bool | none_of (InputIterator first, InputIterator last, Predicate Pred) |
| Test if no elements fulfill condition, returns true if pred returns false for all the elements in the range [first,last] or if the range is empty, and false otherwise. More... | |
| typedef Span<char const> dtk::ConstBuffer |
| typedef Span<char> dtk::MutableBuffer |
| bool dtk::all_of | ( | const Dtk_tab< T > & | tab, |
| Predicate | Pred | ||
| ) |
Test condition on all elements in range, and returns true if pred returns true for all the elements in the range [first,last] or if the range is empty, and false otherwise.
| first | Input iterator to the initial position in a sequence |
| last | Input iterator to the final position in a sequence |
| Pred | Unary function that accepts an element in the range as argument and returns a value convertible to bool. |
| bool dtk::all_of | ( | InputIterator | first, |
| InputIterator | last, | ||
| Predicate | Pred | ||
| ) |
Test condition on all elements in range, and returns true if pred returns true for all the elements in the range [first,last] or if the range is empty, and false otherwise.
| first | Input iterator to the initial position in a sequence |
| last | Input iterator to the final position in a sequence |
| Pred | Unary function that accepts an element in the range as argument and returns a value convertible to bool. |
| bool dtk::any_of | ( | const Dtk_tab< T > & | tab, |
| Predicate | Pred | ||
| ) |
Test if any element in range fulfills condition, returns true if pred returns true for any of the elements in the range [first,last], and false otherwise or if the range is empty.
| first | Input iterator to the initial position in a sequence |
| last | Input iterator to the final position in a sequence |
| Pred | Unary function that accepts an element in the range as argument and returns a value convertible to bool. |
| bool dtk::any_of | ( | InputIterator | first, |
| InputIterator | last, | ||
| Predicate | Pred | ||
| ) |
Test if any element in range fulfills condition, returns true if pred returns true for any of the elements in the range [first,last], and false otherwise or if the range is empty.
| first | Input iterator to the initial position in a sequence |
| last | Input iterator to the final position in a sequence |
| Pred | Unary function that accepts an element in the range as argument and returns a value convertible to bool. |
| auto dtk::as_buffer | ( | Range && | range | ) | -> decltype( as_buffer( std::forward<Range>( range ).data(), std::forward<Range>( range ).size() ) ) |
| auto dtk::as_buffer | ( | T * | data, |
| std::size_t | n | ||
| ) | -> MutableBuffer |
| auto dtk::as_buffer | ( | T const * | data, |
| std::size_t | n | ||
| ) | -> ConstBuffer |
| auto dtk::as_const_buffer | ( | Range && | range | ) | -> ConstBuffer |
| auto dtk::as_const_buffer | ( | T * | data, |
| std::size_t | n | ||
| ) | -> ConstBuffer |
| auto dtk::as_const_buffer | ( | T const * | data, |
| std::size_t | n | ||
| ) | -> ConstBuffer |
| auto dtk::as_const_span | ( | Range && | range | ) | -> Span<typename std::add_const<typename std::remove_pointer<decltype( std::forward<Range>( range ).data() )>::type>::type> |
| auto dtk::as_const_span | ( | T * | data, |
| std::size_t | n | ||
| ) | -> Span<T const> |
| auto dtk::as_const_span | ( | T const * | data, |
| std::size_t | n | ||
| ) | -> Span<T const> |
| auto dtk::as_span | ( | Range && | range | ) | -> Span<typename std::remove_pointer<decltype( std::forward<Range>( range ).data() )>::type> |
| auto dtk::as_span | ( | T * | data, |
| std::size_t | n | ||
| ) | -> Span<T> |
| auto dtk::as_span | ( | T const * | data, |
| std::size_t | n | ||
| ) | -> Span<T const> |
| bool dtk::none_of | ( | const Dtk_tab< T > & | tab, |
| Predicate | Pred | ||
| ) |
Test if no elements fulfill condition, returns true if pred returns false for all the elements in the range [first,last] or if the range is empty, and false otherwise.
| first | Input iterator to the initial position in a sequence |
| last | Input iterator to the final position in a sequence |
| Pred | Unary function that accepts an element in the range as argument and returns a value convertible to bool. |
| bool dtk::none_of | ( | InputIterator | first, |
| InputIterator | last, | ||
| Predicate | Pred | ||
| ) |
Test if no elements fulfill condition, returns true if pred returns false for all the elements in the range [first,last] or if the range is empty, and false otherwise.
| first | Input iterator to the initial position in a sequence |
| last | Input iterator to the final position in a sequence |
| Pred | Unary function that accepts an element in the range as argument and returns a value convertible to bool. |