![]() |
Vcsn
2.8
Be Rational
|
Restrict the interface of a container to begin/end. More...
#include <fwd.hh>
Public Types | |
using | unref_C = typename std::remove_reference< C >::type |
using | value_type = typename unref_C::value_type |
using | const_iterator = typename unref_C::const_iterator |
using | iterator = typename unref_C::const_iterator |
Public Member Functions | |
container_range (const unref_C &cont) | |
auto | begin () const -> decltype(this->cont_. begin()) |
auto | end () const -> decltype(this->cont_. end()) |
auto | front () const -> decltype(this->cont_. front()) |
The first element. More... | |
auto | back () const -> decltype(this->cont_. back()) |
The last element. More... | |
auto | empty () const -> decltype(this->cont_. empty()) |
auto | size () const -> decltype(this->cont_. size()) |
Private Attributes | |
const C | cont_ |
Restrict the interface of a container to begin/end.
using vcsn::container_range< C >::const_iterator = typename unref_C::const_iterator |
using vcsn::container_range< C >::iterator = typename unref_C::const_iterator |
using vcsn::container_range< C >::unref_C = typename std::remove_reference<C>::type |
using vcsn::container_range< C >::value_type = typename unref_C::value_type |
|
inline |
|
inline |
|
inline |
Definition at line 35 of file crange.hh.
Referenced by vcsn::container_filter_range< Cont, Pred >::empty(), vcsn::container_filter_range< Cont, Pred >::front(), and vcsn::container_filter_range< Cont, Pred >::size().
|
inline |
Definition at line 43 of file crange.hh.
Referenced by vcsn::container_filter_range< Cont, Pred >::back(), and vcsn::container_filter_range< Cont, Pred >::front().
|
inline |
Definition at line 36 of file crange.hh.
Referenced by vcsn::container_filter_range< Cont, Pred >::empty(), and vcsn::container_filter_range< Cont, Pred >::size().
|
inline |
|
inline |
|
private |
Definition at line 23 of file crange.hh.
Referenced by vcsn::container_filter_range< Cont, Pred >::back(), vcsn::container_filter_range< Cont, Pred >::begin(), and vcsn::container_filter_range< Cont, Pred >::end().