Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::concepts_detail Namespace Reference

Classes

struct  decayed_invoke_result
 The result of std::invoke(op, item) with item a const T &, without references and const. More...
 
struct  defer
 T itself, made dependent on Deferred. More...
 
struct  invoke_as
 
struct  invoke_as< R(A...)>
 Calls a callable exactly as std::function<R(A...)> would. More...
 
struct  traverse_arg
 What Container::Iterator::get_curr() yields, deferred. More...
 
struct  traverse_carg
 What a constant iterator-driven traverse() passes to its operation: the item as a constant lvalue reference, deferred. More...
 

Concepts

concept  BinNodeLikeImpl
 Unqualified form of BinNodeLike, applied to a cv-free node type.
 

Typedefs

template<class R , class Op , class T >
using map_result_t = typename std::conditional_t< std::is_void_v< R >, decayed_invoke_result< Op, T >, std::type_identity< R > >::type
 Item type of a mapping: R, or the decayed type that Op returns when R is void.
 

Typedef Documentation

◆ map_result_t

template<class R , class Op , class T >
using Aleph::concepts_detail::map_result_t = typedef typename std::conditional_t<std::is_void_v<R>, decayed_invoke_result<Op, T>, std::type_identity<R> >::type

Item type of a mapping: R, or the decayed type that Op returns when R is void.

The maps() members of the mixins take R as their first template parameter with void as default, so that c.maps(op) deduces the item type from op while c.maps<R>(op) still forces one.

Template Parameters
Rthe item type the caller asked for, or void to deduce it.
Opthe mapping operation.
Tthe item type of the source container.

Definition at line 706 of file ah-concepts.H.