3#ifndef TETL_ITERATOR_SIZE_HPP
4#define TETL_ITERATOR_SIZE_HPP
18constexpr auto size(C
const& c)
noexcept(
noexcept(c.size())) ->
decltype(c.size())
24template <
typename T,
size_t N>
25constexpr auto size(T
const (&
array)[N])
noexcept ->
size_t
36 return static_cast<R
>(c.size());
40template <
typename T, ptrdiff_t N>
constexpr auto ssize(C const &c) -> common_type_t< ptrdiff_t, make_signed_t< decltype(c.size())> >
Definition size.hpp:33
constexpr auto size(C const &c) noexcept(noexcept(c.size())) -> decltype(c.size())
Returns the size of the given container c or array array. Returns c.size(), converted to the return t...
Definition size.hpp:18
Definition adjacent_find.hpp:8
TETL_BUILTIN_PTRDIFF ptrdiff_t
etl::ptrdiff_t is the signed integer type of the result of subtracting two pointers.
Definition ptrdiff_t.hpp:14
typename make_signed< T >::type make_signed_t
Definition make_signed.hpp:82
typename common_type< T... >::type common_type_t
Definition common_type.hpp:50
constexpr auto ignore_unused(Types &&...) -> void
Explicitly ignore arguments or variables.
Definition ignore_unused.hpp:17
A container that encapsulates fixed size arrays.
Definition array.hpp:48