* of types `FixedString<4>`, `FixedString<8>`, etc. For example:
* \par
* \code
- * using namespace folly::StringLiterals;
+ * using namespace folly::string_literals;
* constexpr auto hello = "hello"_fs8; // A FixedString<8> containing "hello"
* \endcode
* \par
* the right size. For example:
* \par
* \code
- * using namespace folly::StringLiterals;
+ * using namespace folly::string_literals;
* // NOTE: Only works on compilers with GNU extensions enabled. Clang and
* // gcc support this (-Wgnu-string-literal-operator-template):
* constexpr auto hello = "hello"_fs; // A FixedString<5> containing "hello"
a.swap(b);
}
-inline namespace Literals {
-inline namespace StringLiterals {
+inline namespace literals {
+inline namespace string_literals {
inline namespace {
// "const std::size_t&" is so that folly::npos has the same address in every
// translation unit. This is to avoid potential violations of the ODR.
* \par Example:
* \par
* \code
- * using namespace folly::StringLiterals;
+ * using namespace folly::string_literals;
* constexpr auto hello = "hello world!"_fs;
* \endcode
*