tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
begin.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<typename C>
constexpr auto begin (C &c) -> decltype(c.begin())
 Returns an iterator to the beginning of the given container c or array array. These templates rely on C::begin() having a reasonable implementation. Returns exactly c.begin(), which is typically an iterator to the beginning of the sequence represented by c. If C is a standard Container, this returns C::iterator when c is not const-qualified, and C::const_iterator otherwise. Custom overloads of begin may be provided for classes that do not expose a suitable begin() member function, yet can be iterated.
 
template<typename C>
constexpr auto begin (C const &c) -> decltype(c.begin())
 
template<typename T, etl::size_t N>
constexpr auto begin (T(&array)[N]) noexcept -> T *
 
template<typename C>
constexpr auto cbegin (C const &c) noexcept(noexcept(begin(c))) -> decltype(begin(c))