begin overloads

Synopses

Declared in <bsltf_inputiterator.h>

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

template<class CONTIGUOUS_CONTAINER>
static
InputIterator<CONTIGUOUS_CONTAINER::value_type>
begin(CONTIGUOUS_CONTAINER& container);

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

template<class CONTIGUOUS_CONTAINER>
static
InputIterator<CONTIGUOUS_CONTAINER::value_type const>
begin(CONTIGUOUS_CONTAINER const& container);

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

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

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

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

Return Value

  • an iterator to the first element, or a null iterator if empty

  • an iterator referring to the first element of array

Parameters

Name

Description

container

contiguous container providing the range

array

contiguous array providing the range

Created with MrDocs