A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://en.cppreference.com/w/cpp/algorithm/../utility/functional/function_ref/deduction_guides.html below:

deduction guides for std::function_ref - cppreference.com

template< class F >
function_ref( F* ) -> function_ref<F>;

(1) (since C++26) template< auto f >
function_ref( std::nontype_t<f> ) -> function_ref</*see below*/>;
(2) (since C++26) template< auto f, class T >
function_ref( std::nontype_t<f>, T&& ) -> function_ref</*see below*/>;
(3) (since C++26) 1)

This overload participates in overload resolution only if

std::is_function_v<F>

is

true

.

3)

Let type

F

be

decltype(f)

. This overload participates in overload resolution only if :

The deduced type is std::function_ref<R(A...) noexcept(E)>.
[edit] Example

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