typedef std::function<bool(int)> MyFunction;
That bool(int)
template argument notation syntax - does it have a name? I tried to read C++ standard about this syntax and did not know what to search for.
Obviously, using it in other contexts seems to fail.
typedef bool(int) MyFunctionType; // does not work.
So I assume there is a special chapter about this syntax somewhere...
Thanks.
Search syntax allows you to perform searches for documents that have been linked together. Document relationship: This search will return entries given either side of a specific document relationship. This search will return at least two entries.
However, the special field syntax allows you to search for specific terms in specific fields by typing (in the search box) the field name followed by a colon (":") and then the term you are looking for in that field. (Note that you cannot put any spaces before or after the colon.)
Advanced search syntax gives you the ability to search your notes by special commands, like the date they were created, the type of content they contain (audio, images, etc.)
Here are a few examples of advanced Google search operators: site: followed (without a space) by a website or domain returns files located there. filetype: followed by a file extension returns files of the specified type, such as DOC, PDF, XLS and INI.
I don't know of a common name for this. In the standard, it's called a type-id, after its grammar production.
The type-id bool(int)
names the type "function of (int)
returning bool
".
It doesn't work with typedef
(which uses the normal declaration syntax instead), but alias declared with using
does use a type-id:
using MyFunctionType = bool(int);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With