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

children_of

Join two listings on the id one of them carries.

Source and package
Qualified name
libtmux::children_of
Namespace
libtmux
Package
libtmux-cxx
Source
include/libtmux/relations.hpp
template <typename Parent, typename Child> [[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]] auto children_of(const std::vector<Child>& rows, StringFieldHandle<Child> foreign_key, StringFieldHandle<Parent> key);template <typename Parent, typename Child> auto children_of(const std::vector<Child>&&, StringFieldHandle<Child>, StringFieldHandle<Parent>) = delete;

Description#

A relation predicate has to reach the related rows without running tmux, so the caller lists both kinds once and links them here. The result borrows the rows it was given, exactly as a filtered view does, so it must not outlive the listing it reads.

Type parameters
Parameters
Esc

Type to search.

Reference previewOpen reference