Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template basic_cstring_ref

boost::process::v2::basic_cstring_ref — Small wrapper for a null-terminated string that can be directly passed to C APIS.

Synopsis

// 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;
};

Description

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 construct/copy/destruct

  1. () ;
  2. () = ;
  3. ( s);
  4. template<typename Source, 
             typename , 
             :: > 
      ( src);

basic_cstring_ref public member functions

  1.  
    () ;
  2.  () ;
  3.  () ;
  4.  () ;
  5.  () ;
  6.  () ;
  7.  () ;
  8.  () ;
  9.  () ;
  10.  () ;
  11.  () ;
  12.  () ;
  13.  () ;
  14.  () ;
  15.  ( pos) ;
  16.  ( pos) ;
  17.  () ;
  18.  () ;
  19.  () ;
  20.  ( n);
  21.  (basic_cstring_ref & s) ;
  22.  ( s,  n,  pos = ) ;
  23. basic_cstring_ref ( pos = ) ;
  24.  ( pos,  length) ;
  25.  (basic_cstring_ref x) ;
  26.  ( x) ;
  27.  ( x) ;
  28.  ( ch,  pos = ) ;
  29.  () ;
  30.  () ;
  31. template<typename Allocator> 
       
      ( a) ;

basic_cstring_ref private static functions

  1.  ();

PrevUpHomeNext