Core LibraryalphaAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

function libtmux-cxx latest

first

first() states that a caller tolerates extras; it never reports several.

Source and package
Qualified name
libtmux::first
Namespace
libtmux
Package
libtmux-cxx
Source
include/libtmux/cardinality.hpp
template <ReferenceRange Range> [[C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.Language documentation]] std::optional<Referenced<Range>> first(Range& range);template <typename Range> auto first(const Range&&) = delete;
Type parameters
  • Range # for first(range)

    Constraint ReferenceRange

  • Range # for first(const Range &&)

Parameters
Esc

Type to search.

Reference previewOpen reference