avcpp 3.2.1
Wrapper for the FFmpeg that simplify usage from C++ projects.
Loading...
Searching...
No Matches
av::SentinelUntilPolicy< T > Struct Template Reference

Sentinel policy that defines well-known sequence end marker, like '\0' at the C-string end or special value like NULL.

#include <avutils.h>

Public Types

using value_type = std::remove_cvref_t<T>
 Type of the range elements.

Public Member Functions

constexpr bool isEnd (T *it) const noexcept
 Whether the iterator reached the terminating value.

Public Attributes

value_type value {}
 Value that terminates the sequence, for example '\0' or a null pointer.

Member Function Documentation

◆ isEnd()

template<class T>
bool av::SentinelUntilPolicy< T >::isEnd ( T * it) const
inlineconstexprnoexcept
Parameters
itthe iterator to test
Returns
true when it is null or points at the terminator

The documentation for this struct was generated from the following file: