Is it possible to qualify C functions in the `std` namespace?

When I use functions inherited from C, like those that are in <cmath>or <cstdlib>, should I qualify them as part of the standard namespace std::log, or should I stay in the C-sphere and use them as global functions? What about size_t?

+5
source share
1 answer

If you use, for example, <math.h>

No, not worth it.

It is not known whether they are available in the namespace stdfor any particular implementation:

[C++11: D.5/2]: C, name.h, , , cname, . , (3.3.6) std - (7.3.3).

:

[C++11: C.3.1/1]: C ++ 18 C (D.5), ++.


, , <cmath>

, .

, :

[C++11: 17.6.1.2/4]: , 18-30 D, cname , name.h, C (1.2) C Unicode TR, , . ++ ( , C) (3.3.6) std. , std - (7.3.3).

+16

All Articles