Function cbegin

Summary

#include "breeze/iteration/begin_end.hpp"

(1) template <typename C>
    constexpr C::const_iterator cbegin(C const &c) noexcept(noexcept(c.begin()))

(2) template <typename T, std::ptrdiff_t n>
    constexpr T const  * cbegin(T const (&a)[n]) noexcept

Function overload

Synopsis

#include "breeze/iteration/begin_end.hpp"

template <typename C>
constexpr C::const_iterator cbegin(C const &c) noexcept(noexcept(c.begin()))

Description

Returns
The same as c.begin(), for any standard container.

Source

Lines 80-85 in breeze/iteration/begin_end.hpp.

template< typename C >
constexpr typename C::const_iterator
cbegin( C const & c ) noexcept( noexcept( c.begin() ) )
{
    return c.begin() ;
}

Synopsis

#include "breeze/iteration/begin_end.hpp"

template <typename T, std::ptrdiff_t n>
constexpr T const  * cbegin(T const (&a)[n]) noexcept

Description

Like container::begin(), but for a built-in array.

Source

Lines 145-150 in breeze/iteration/begin_end.hpp.

template< typename T, std::ptrdiff_t n >
constexpr T const *
cbegin( T const ( &a )[ n ] ) noexcept
{
    return a ;
}