Partager via


<cstring>

Defines the macros traditionally defined in the Standard C library header <string.h>.

#if <TRADITIONAL C HEADERS>
   #include <string.h>
namespace std {
   using ::memchr; 
   using ::memcmp;
   using ::memcpy; 
   using ::memmove; 
   using ::memset;
   using ::size_t; 
   using ::strcat; 
   using ::strchr; 
   using ::strcmp;
   using ::strcoll; 
   using ::strcpy; 
   using ::strcspn;
   using ::strerror;
   using ::strlen;
   using ::strncat;
   using ::strncmp;
   using ::strncpy; 
   using ::strpbrk;
   using ::strrchr; 
   using ::strspn; 
   using ::strstr;
   using ::strtok; 
   using ::strxfrm;
}
#endif

Remarks

Including this header also ensures that the names declared with external linkage in the Standard C library header are declared in the std namespace. In this implementation, the names may or may not also be declared in the global namespace, depending on the specific translation environment.

See Also

Concepts

Header Files

Standard C++ Library Overview

Thread Safety in the Standard C++ Library