21 #include <bsoncxx/document/view.hpp>
22 #include <bsoncxx/array/element.hpp>
24 #include <bsoncxx/config/prelude.hpp>
27 BSONCXX_INLINE_NAMESPACE_BEGIN
35 class BSONCXX_API const_iterator;
41 const_iterator cbegin()
const;
46 const_iterator cend()
const;
51 const_iterator begin()
const;
56 const_iterator end()
const;
68 const_iterator find(std::uint32_t i)
const;
80 element operator[](std::uint32_t i)
const;
97 view(
const std::uint8_t* data, std::size_t length);
104 const std::uint8_t* data()
const;
114 std::size_t length()
const;
133 friend BSONCXX_API
bool BSONCXX_CALL operator==(
view,
view);
134 friend BSONCXX_API
bool BSONCXX_CALL operator!=(
view,
view);
150 :
public std::iterator<std::forward_iterator_tag, element, std::ptrdiff_t, const element*,
156 reference operator*();
157 pointer operator->();
180 BSONCXX_INLINE_NAMESPACE_END
183 #include <bsoncxx/config/postlude.hpp>
A read-only, non-owning view of a BSON document.
Definition: view.hpp:33
A const iterator over the contents of an array view.
Definition: view.hpp:149
A read-only, non-owning view of a BSON document.
Definition: view.hpp:33
A variant view type that accesses values in serialized BSON arrays.
Definition: element.hpp:36
Definition: element.hpp:24