109 return !(lhs == rhs);
119 return !(rhs == lhs);
132using v_noabi::string::operator==;
133using v_noabi::string::operator!=;
#define BSONCXX_ABI_EXPORT_CDECL(...)
Equivalent to BSONCXX_ABI_EXPORT with BSONCXX_ABI_CDECL.
Definition export.hpp:52
The bsoncxx v_noabi macro guard postlude header.
The bsoncxx v_noabi macro guard prelude header.
view_or_value()=default
Default constructor, equivalent to using an empty string.
A polyfill for std::string_view.
Definition string_view.hpp:412
view_or_value(std::string const &str)
Allow construction with an l-value reference to a std::string. The resulting view_or_value will keep ...
Definition view_or_value.hpp:72
view_or_value()=default
Default constructor, equivalent to using an empty string.
bool operator!=(char const *lhs, view_or_value const &rhs)
Comparison operators for comparing string::view_or_value directly with char const*.
Definition view_or_value.hpp:118
bool operator!=(view_or_value const &lhs, char const *rhs)
Comparison operators for comparing string::view_or_value directly with char const*.
Definition view_or_value.hpp:108
view_or_value(char const *str)
Construct a string::view_or_value using a null-terminated const char *. The resulting view_or_value w...
Definition view_or_value.hpp:60
char const * data() const
Call data() on this view_or_value's string_view. This method is not guaranteed to return a null-termi...
bool operator==(char const *lhs, view_or_value const &rhs)
Comparison operators for comparing string::view_or_value directly with char const*.
Definition view_or_value.hpp:113
view_or_value terminated() const
Return a string_view_or_value that is guaranteed to hold a null-terminated string....
bool operator==(view_or_value const &lhs, char const *rhs)
Comparison operators for comparing string::view_or_value directly with char const*.
Definition view_or_value.hpp:103
A view-or-value variant type.
Definition view_or_value.hpp:32
operator stdx::string_view() const
Definition view_or_value.hpp:126
Declares C++17 standard library polyfills.
Declares entities related to handling string types.
Declares entities whose ABI stability is NOT guaranteed.
The top-level namespace within which all bsoncxx library entities are declared.
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.