C++ Logo

std-discussion

Advanced search

Re: Addressability of the standard template function std::invoke.

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sat, 28 Oct 2023 11:31:11 -0700
On Saturday, 28 October 2023 10:12:26 PDT Vladimir Grigoriev via Std-
Discussion wrote:
> May the function std::invoke be used as shown below?
>
> std::for_each( std::begin( v ), std::end( v ),
> std::invoke<std::function<void()> &> );

If there are two template overloads for std::invoke, which one will be
selected here?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-10-28 18:31:13