samedi 22 mai 2021

How to check the maximum number of std::placeholders?

According to cppref:

The std::placeholders namespace contains the placeholder objects [_1, . . ., _N] where N is an implementation defined maximum number.

I checked libstdc++'s header file functional and found the N is 29.

Is there a standard way to check that? Say, a feature test macro?

Aucun commentaire:

Enregistrer un commentaire