![]() |
Home | Libraries | People | FAQ | More |
boost::process::v2::basic_cstring_ref — Small wrapper for a null-terminated string that can be directly passed to C APIS.
// In header: <boost/process/v2/cstring_ref.hpp> template<typename CharT, typename Traits> struct basic_cstring_ref { // types typedef ; typedef ; typedef ; typedef ; typedef ; typedef ; typedef ; typedef ; typedef ; typedef ; typedef ; typedef ; typedef ; // construct/copy/destruct () ; () = ; (); template<typename Source, typename , :: > (); // public member functions () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; (); (basic_cstring_ref &) ; (, , = ) ; basic_cstring_ref ( = ) ; (, ) ; (basic_cstring_ref) ; () ; () ; (, = ) ; () ; () ; template<typename Allocator> () ; // private static functions (); // public data members static npos; };
This ref can only be modified by moving the front pointer. It does not store the size, but can detect values that can directly be passed to system APIs.
It can be constructed from a char*
pointer or any class that has a c_str()
member function, e.g. std::string or boost::static_string.
basic_cstring_ref
public member functions() ;
() ;
() ;
() ;
() ;
() ;
() ;
() ;
() ;
() ;
() ;
() ;
() ;
() ;
( pos) ;
( pos) ;
() ;
() ;
() ;
( n);
(basic_cstring_ref & s) ;
( s, n, pos = ) ;
basic_cstring_ref ( pos = ) ;
( pos, length) ;
(basic_cstring_ref x) ;
( x) ;
( x) ;
( ch, pos = ) ;
() ;
() ;
template<typename Allocator> ( a) ;