cppx-core
Classes | Public Types | Public Member Functions | List of all members
cppx::Enumerated_< Collection > Class Template Reference

#include <Enumerated_.hpp>

Classes

struct  Item_and_index
 
class  Iterator
 

Public Types

using Item = decltype(*std::begin(declval< Collection & >()))
 
using Item_value = Unref_< Item >
 

Public Member Functions

auto begin () const -> Iterator
 
auto end () const -> Iterator
 
 Enumerated_ (Collection &c)
 
 Enumerated_ (tag::Temporary, Collection &&c)
 

Detailed Description

template<class Collection>
class cppx::Enumerated_< Collection >

Definition at line 20 of file Enumerated_.hpp.

Member Typedef Documentation

◆ Item

template<class Collection >
using cppx::Enumerated_< Collection >::Item = decltype( *std::begin( declval<Collection&>() ) )

Definition at line 27 of file Enumerated_.hpp.

◆ Item_value

template<class Collection >
using cppx::Enumerated_< Collection >::Item_value = Unref_<Item>

Definition at line 28 of file Enumerated_.hpp.

Constructor & Destructor Documentation

◆ Enumerated_() [1/2]

template<class Collection >
cppx::Enumerated_< Collection >::Enumerated_ ( Collection &  c)
inlineexplicit

Definition at line 67 of file Enumerated_.hpp.

◆ Enumerated_() [2/2]

template<class Collection >
cppx::Enumerated_< Collection >::Enumerated_ ( tag::Temporary  ,
Collection &&  c 
)
inlineexplicit

Definition at line 71 of file Enumerated_.hpp.

Member Function Documentation

◆ begin()

template<class Collection >
auto cppx::Enumerated_< Collection >::begin ( ) const -> Iterator
inline

Definition at line 59 of file Enumerated_.hpp.

◆ end()

template<class Collection >
auto cppx::Enumerated_< Collection >::end ( ) const -> Iterator
inline

Definition at line 63 of file Enumerated_.hpp.


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