HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
hi::v1::is_forward_of< Context, Expected, OtherExpected > Struct Template Reference

Detailed Description

template<typename Context, typename Expected, typename... OtherExpected>
struct hi::v1::is_forward_of< Context, Expected, OtherExpected >

Is context a form of the expected type.

The context matched the expected type when:

Examples of forward_of concept which is created from is_forward_of:

void foo(forward_of<std::string> auto &&text) {
bar(std::forward<decltype(text)>(text));
}
bar(std::forward<decltype(text)>(ptr));
}
void foo(forward_of<std::unique_ptr<std::string>> auto &&ptr) {
bar(std::forward<decltype(text)>(ptr));
}
void foo(forward_of<std::string *> auto &&ptr) {
bar(std::forward<decltype(text)>(ptr));
}
void foo(forward_of<void(std::string)> auto &&func) {
bar(std::forward<decltype(func)>(func));
}
True if T is a forwarded type of Forward.
Definition concepts.hpp:137
T forward(T... args)
Template Parameters
ContextThe template argument of a forwarding function argument.
ExpectedThe type expected that matched a decayed-context.
OtherExpectedoptional other expected types which may match the decayed-context.

The documentation for this struct was generated from the following file: