BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsltf::InputIteratorUtil Struct Reference

#include <bsltf_inputiterator.h>

Static Public Member Functions

template<class CONTIGUOUS_CONTAINER >
static InputIterator< typename CONTIGUOUS_CONTAINER::value_type > begin (CONTIGUOUS_CONTAINER &container)
 
template<class CONTIGUOUS_CONTAINER >
static InputIterator< const typename CONTIGUOUS_CONTAINER::value_type > begin (const CONTIGUOUS_CONTAINER &container)
 
template<class TYPE , std::size_t LEN>
static InputIterator< TYPE > begin (TYPE(&array)[LEN])
 
template<class TYPE , std::size_t LEN>
static InputIterator< const TYPE > begin (const TYPE(&array)[LEN])
 
template<class CONTIGUOUS_CONTAINER >
static InputIterator< typename CONTIGUOUS_CONTAINER::value_type > end (CONTIGUOUS_CONTAINER &container)
 
template<class CONTIGUOUS_CONTAINER >
static InputIterator< const typename CONTIGUOUS_CONTAINER::value_type > end (const CONTIGUOUS_CONTAINER &container)
 
template<class TYPE , std::size_t LEN>
static InputIterator< TYPE > end (TYPE(&array)[LEN])
 
template<class TYPE , std::size_t LEN>
static InputIterator< const TYPE > end (const TYPE(&array)[LEN])
 

Detailed Description

This namespace struct allows the easy creation of begin and end iterators from a variety of contiguous range types. Either the argument must be an array, or a container that supports the following operations:

  • size()
  • operator@ref size_t (if 0 != size())

and the type CONTIGUOUS_CONTAINER::value_type.

Member Function Documentation

◆ begin() [1/4]

template<class CONTIGUOUS_CONTAINER >
InputIterator< const typename CONTIGUOUS_CONTAINER::value_type > bsltf::InputIteratorUtil::begin ( const CONTIGUOUS_CONTAINER &  container)
static

◆ begin() [2/4]

template<class TYPE , std::size_t LEN>
InputIterator< const TYPE > bsltf::InputIteratorUtil::begin ( const TYPE(&)  array[LEN])
static

◆ begin() [3/4]

template<class CONTIGUOUS_CONTAINER >
InputIterator< typename CONTIGUOUS_CONTAINER::value_type > bsltf::InputIteratorUtil::begin ( CONTIGUOUS_CONTAINER &  container)
inlinestatic

Return an InputIterator referring to the first element of the specified container or a null iterator if container is empty.

◆ begin() [4/4]

template<class TYPE , std::size_t LEN>
InputIterator< TYPE > bsltf::InputIteratorUtil::begin ( TYPE(&)  array[LEN])
static

Return an InputIterator referring to the first element of the specified array.

◆ end() [1/4]

template<class CONTIGUOUS_CONTAINER >
InputIterator< const typename CONTIGUOUS_CONTAINER::value_type > bsltf::InputIteratorUtil::end ( const CONTIGUOUS_CONTAINER &  container)
static

◆ end() [2/4]

template<class TYPE , std::size_t LEN>
InputIterator< const TYPE > bsltf::InputIteratorUtil::end ( const TYPE(&)  array[LEN])
static

◆ end() [3/4]

template<class CONTIGUOUS_CONTAINER >
InputIterator< typename CONTIGUOUS_CONTAINER::value_type > bsltf::InputIteratorUtil::end ( CONTIGUOUS_CONTAINER &  container)
static

Return an InputIterator referring to after the last element of the specified container or a null iterator if container is empty.

◆ end() [4/4]

template<class TYPE , std::size_t LEN>
InputIterator< TYPE > bsltf::InputIteratorUtil::end ( TYPE(&)  array[LEN])
static

Return an InputIterator referring to after the last element of the specified array.


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