tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
wmemchr.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CWCHAR_WMEMCHR_HPP
4#define TETL_CWCHAR_WMEMCHR_HPP
5
8
9namespace etl {
10
17[[nodiscard]] constexpr auto wmemchr(wchar_t* ptr, wchar_t ch, etl::size_t count) noexcept -> wchar_t*
18{
19 return etl::detail::memchr<wchar_t>(ptr, ch, count);
20}
21
28[[nodiscard]] constexpr auto wmemchr(wchar_t const* ptr, wchar_t ch, etl::size_t count) noexcept -> wchar_t const*
29{
30 return etl::detail::memchr<wchar_t const>(ptr, ch, count);
31}
32} // namespace etl
33
34#endif // TETL_CWCHAR_WMEMCHR_HPP
constexpr auto count(InputIt first, InputIt last, T const &value) -> typename iterator_traits< InputIt >::difference_type
Returns the number of elements in the range [first, last) satisfying specific criteria....
Definition count.hpp:21
Definition adjacent_find.hpp:8
constexpr auto wmemchr(wchar_t *ptr, wchar_t ch, etl::size_t count) noexcept -> wchar_t *
Locates the first occurrence of wide character ch in the initial count wide characters of the wide ch...
Definition wmemchr.hpp:17
TETL_BUILTIN_SIZET size_t
etl::size_t is the unsigned integer type of the result of the sizeof operator.
Definition size_t.hpp:14