Public Types | Static Public Member Functions | List of all members
util::span_base Struct Reference

Non-templated base class for span. More...

#include <span.h>

Inheritance diagram for util::span_base:
util::span< Iter > util::span< BIter, EIter > geo::IteratorBox< Iter, BeginFunc, EndFunc > geo::LocalIteratorBox< Iter, GeoID, BeginFunc, EndFunc >

Public Types

template<typename Cont >
using get_begin_iterator = std::decay_t< decltype(get_begin(std::declval< Cont >()))>
 Type of begin iterator of Cont type. More...
 
template<typename Cont >
using get_end_iterator = std::decay_t< decltype(get_end(std::declval< Cont >()))>
 Type of end iterator of Cont type. More...
 
template<typename Cont >
using get_cbegin_iterator = std::decay_t< decltype(get_cbegin(std::declval< Cont >()))>
 Type of constant begin iterator of Cont type. More...
 
template<typename Cont >
using get_cend_iterator = std::decay_t< decltype(get_cend(std::declval< Cont >()))>
 Type of constant end iterator of Cont type. More...
 

Static Public Member Functions

template<typename Cont >
static decltype(auto) get_begin (Cont &cont)
 Returns the begin iterator of the specified container. More...
 
template<typename Cont >
static decltype(auto) get_end (Cont &cont)
 Returns the end iterator of the specified container. More...
 
template<typename Cont >
static decltype(auto) get_cbegin (Cont &cont)
 Returns the constant begin iterator of the specified container. More...
 
template<typename Cont >
static decltype(auto) get_cend (Cont &cont)
 Returns the constant end iterator of the specified container. More...
 

Detailed Description

Non-templated base class for span.

Definition at line 26 of file span.h.

Member Typedef Documentation

template<typename Cont >
using util::span_base::get_begin_iterator = std::decay_t<decltype(get_begin(std::declval<Cont>()))>

Type of begin iterator of Cont type.

Definition at line 41 of file span.h.

template<typename Cont >
using util::span_base::get_cbegin_iterator = std::decay_t<decltype(get_cbegin(std::declval<Cont>()))>

Type of constant begin iterator of Cont type.

Definition at line 62 of file span.h.

template<typename Cont >
using util::span_base::get_cend_iterator = std::decay_t<decltype(get_cend(std::declval<Cont>()))>

Type of constant end iterator of Cont type.

Definition at line 67 of file span.h.

template<typename Cont >
using util::span_base::get_end_iterator = std::decay_t<decltype(get_end(std::declval<Cont>()))>

Type of end iterator of Cont type.

Definition at line 46 of file span.h.

Member Function Documentation

template<typename Cont >
static decltype(auto) util::span_base::get_begin ( Cont &  cont)
inlinestatic

Returns the begin iterator of the specified container.

Definition at line 30 of file span.h.

31  { using std::begin; return begin(cont); }
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
Definition: StdUtils.h:72
template<typename Cont >
static decltype(auto) util::span_base::get_cbegin ( Cont &  cont)
inlinestatic

Returns the constant begin iterator of the specified container.

Definition at line 51 of file span.h.

52  { using std::cbegin; return cbegin(cont); }
decltype(auto) constexpr cbegin(T &&obj)
ADL-aware version of std::cbegin.
Definition: StdUtils.h:82
template<typename Cont >
static decltype(auto) util::span_base::get_cend ( Cont &  cont)
inlinestatic

Returns the constant end iterator of the specified container.

Definition at line 56 of file span.h.

57  { using std::cend; return cend(cont); }
decltype(auto) constexpr cend(T &&obj)
ADL-aware version of std::cend.
Definition: StdUtils.h:87
template<typename Cont >
static decltype(auto) util::span_base::get_end ( Cont &  cont)
inlinestatic

Returns the end iterator of the specified container.

Definition at line 35 of file span.h.

36  { using std::end; return end(cont); }
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
Definition: StdUtils.h:77

The documentation for this struct was generated from the following file: