function object
std::ranges::cbegin
- Header
<ranges>- Scope
std::ranges- cppreference
- std::ranges::cbegin
Synopsis
inline constexpr /* implementation-defined */ cbegin = {};Call signatures
cbegin is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template<class T> requires maybe-borrowed<T> && requires(T& t) { std::ranges::begin( possibly-const-range(t)); } [[nodiscard]] constexpr auto cbegin( T&& t) noexcept(noexcept(std::const_iterator<decltype(std::ranges::begin(possibly-const-range(t)))>(std::ranges::begin(possibly-const-range(t)))));