The concept convertible_to<From, To> specifies that an expression of the same type and value category as those of std::declval<From>() can be implicitly and explicitly converted to the type To
, and the two forms of conversion produce equal results.
convertible_to<From, To> is modeled only if, given a function fun
of type std::add_rvalue_reference_t<From>() such that the expression fun() is equality-preserving,
To
is neither an object type nor a reference-to-object type, orExpressions declared in requires expressions of the standard library concepts are required to be equality-preserving (except where stated otherwise).
[edit] Referencesconvertible_to
[concept.convertible]convertible_to
[concept.convertible]RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4