Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
kcenon::common::concepts::UnaryFunction Concept Referenceexport

A callable type that takes a single argument. More...

#include <callable.h>

Concept definition

template<typename F, typename Arg>
A callable type that can be invoked with given arguments.
Definition callable.h:62
A callable type that takes a single argument.
Definition callable.h:155

Detailed Description

A callable type that takes a single argument.

Example usage:

template<typename T, UnaryFunction<T> F>
auto transform_all(std::vector<T>& vec, F&& func) {
for (auto& item : vec) {
item = func(item);
}
}

Definition at line 155 of file callable.h.