![]()  | 
  
    P4C
    
   The P4 Compiler 
   | 
 
Functions | |
| cstring | operator""_cs (const char *str, std::size_t len) | 
Let's prevent literal clashes. A user wishing to use the literal can do using namespace P4::literals, similarly as they can do using namespace std::literals for the standard once.
      
  | 
  inline | 
A user-provided literal suffix to allow creation of cstring from literals: "foo"_cs. Note that the C++ standard mandates that all user-defined literal suffixes defined outside of the standard library must start with underscore.