Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Can FunctionObject be deprecated and replaced by Callable?
Can FunctionObject be deprecated and replaced by Callable? [message #1828164] Wed, 03 June 2020 03:53 Go to next message
Eclipse UserFriend
Use case:

vector<string> names = {"Not empty"};
auto const all_empty = all_of(begin(names), end(names), &string::empty);
I looked through a few invoke-related papers (N4169, P0077R2... any others?) to see if relaxing the algorithm requirements was considered or discussed but I couldn't find any mention of the idea. Is it because it's dumb in some way? If so please clue me in :).



___________________________________________________________
cloud meeting dombivali east property luxury flats for sale in mumbai

[Updated on: Thu, 04 June 2020 00:53] by Moderator

Re: Can FunctionObject be deprecated and replaced by Callable? [message #1828235 is a reply to message #1828164] Thu, 04 June 2020 10:41 Go to previous message
Eclipse UserFriend
Hi,

Your question has nothing to do with the CDT which is an C/C++ IDE.

But the third argument of std::all_of should be an unary predicate for which the expression predicate(element) should be convertable to bool. See https://en.cppreference.com/w/cpp/algorithm/all_any_none_of.
Previous Topic:NO "select other" in my debug configurations
Next Topic:Building Eclipse and CDT from source on windows
Goto Forum:
  


Current Time: Fri Nov 07 18:53:47 EST 2025

Powered by FUDForum. Page generated in 0.02263 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top