21 #include <bsoncxx/document/element.hpp>
22 #include <bsoncxx/stdx/string_view.hpp>
24 #include <bsoncxx/config/prelude.hpp>
27 BSONCXX_INLINE_NAMESPACE_BEGIN
53 view(
const std::uint8_t* data, std::size_t length);
102 element operator[](stdx::string_view key)
const;
109 const std::uint8_t* data()
const;
119 std::size_t length()
const;
136 friend BSONCXX_API
bool BSONCXX_CALL operator==(
view,
view);
137 friend BSONCXX_API
bool BSONCXX_CALL operator!=(
view,
view);
143 const std::uint8_t* _data;
162 reference operator*();
163 pointer operator->();
186 BSONCXX_INLINE_NAMESPACE_END
189 #include <bsoncxx/config/postlude.hpp>