110 return !(lhs == rhs);
120 return !(rhs == lhs);
133using ::bsoncxx::v_noabi::string::operator==;
134using ::bsoncxx::v_noabi::string::operator!=;
146#if defined(BSONCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
The bsoncxx macro guard postlude header.
The bsoncxx macro guard prelude header.
A polyfill for std::string_view.
Definition string_view.hpp:503
Class representing a view-or-value variant type for strings.
Definition view_or_value.hpp:41
view_or_value()=default
Default constructor, equivalent to using an empty string.
const char * data() const
Call data() on this view_or_value's string_view. This method is not guaranteed to return a null-termi...
bool operator!=(const char *lhs, const view_or_value &rhs)
Comparison operators for comparing string::view_or_value directly with const char*.
Definition view_or_value.hpp:119
view_or_value(const std::string &str)
Allow construction with an l-value reference to a std::string. The resulting view_or_value will keep ...
Definition view_or_value.hpp:73
bool operator==(const char *lhs, const view_or_value &rhs)
Comparison operators for comparing string::view_or_value directly with const char*.
Definition view_or_value.hpp:114
bool operator==(const view_or_value &lhs, const char *rhs)
Comparison operators for comparing string::view_or_value directly with const char*.
Definition view_or_value.hpp:104
bool operator!=(const view_or_value &lhs, const char *rhs)
Comparison operators for comparing string::view_or_value directly with const char*.
Definition view_or_value.hpp:109
view_or_value terminated() const
Return a string_view_or_value that is guaranteed to hold a null-terminated string....
Class representing a view-or-value variant type.
Definition view_or_value.hpp:32
operator stdx::string_view() const
Definition view_or_value.hpp:129
const View & view() const
Get a View for the type.
Definition view_or_value.hpp:138
#define BSONCXX_ABI_EXPORT_CDECL(...)
Equivalent to BSONCXX_ABI_EXPORT with BSONCXX_ABI_CDECL.
Definition fwd.hpp:225
bool operator!=(const v_noabi::string::view_or_value &lhs, const char *rhs)
bsoncxx::v_noabi::string::operator!=(const v_noabi::string::view_or_value& lhs, const char* rhs)
bool operator==(const v_noabi::string::view_or_value &lhs, const char *rhs)
bsoncxx::v_noabi::string::operator==(const v_noabi::string::view_or_value& lhs, const char* rhs)
The top-level namespace within which all bsoncxx library entities are declared.
The top-level namespace reserved for the C++ standard library.
Declares bsoncxx::v_noabi::string::view_or_value.
Provides std::string_view-related polyfills for library API usage.
Provides bsoncxx::v_noabi::view_or_value.