MongoDB C++ Driver  mongocxx-3.7.0
Public Member Functions | Related Functions | List of all members
bsoncxx::types::b_string Struct Reference

A BSON UTF-8 encoded string value. More...

#include <types.hpp>

Public Member Functions

template<typename T , typename std::enable_if<!std::is_same< b_string, typename std::decay< T >::type >::value, int >::type = 0>
 b_string (T &&t)
 Constructor for b_string. More...
 
 operator stdx::string_view () const
 Conversion operator unwrapping a string_view.
 

Related Functions

(Note that these are not member functions.)

bool operator== (const b_string &lhs, const b_string &rhs)
 free function comparator for b_string
 

Detailed Description

A BSON UTF-8 encoded string value.

Constructor & Destructor Documentation

◆ b_string()

template<typename T , typename std::enable_if<!std::is_same< b_string, typename std::decay< T >::type >::value, int >::type = 0>
bsoncxx::types::b_string::b_string ( T &&  t)
inlineexplicit

Constructor for b_string.

Parameters
tThe value to wrap.

The documentation for this struct was generated from the following file: