Skip to content

ext::find_iterator

Iterator adaptor for indication of container find call results. More...

#include <find_iterator.h>

Inherits from Iterator

Public Functions

Name
find_iterator(Iterator && it, const Iterator & it_end)<br>Initializes the iterator as the result of [find()](Namespaces/namespaceext.md#function-find).
operator bool()

Detailed Description

cpp
template <class Iterator >
class ext::find_iterator;

Iterator adaptor for indication of container find call results.

Template Parameters:

  • Iterator Iterator type belonging to the container.

Conveniently wraps common calls after find into implicit Boolean value.

Public Functions Documentation

function find_iterator

cpp
inline find_iterator(
    Iterator && it,
    const Iterator & it_end
)

Initializes the iterator as the result of [find()](Namespaces/namespaceext.md#function-find).

Parameters:

  • it The result of find call.
  • it_end The sentinel iterator indicator not-found.

function operator bool

cpp
inline explicit operator bool()

Return: true if the iterator indicates that the item is found.


Updated on 2026-01-09 at 21:59:12 +0000