metadata_collection_view.hpp 911 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // Copyright (c) 2019-2024 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. #ifndef BOOST_MYSQL_METADATA_COLLECTION_VIEW_HPP
  8. #define BOOST_MYSQL_METADATA_COLLECTION_VIEW_HPP
  9. #include <boost/mysql/metadata.hpp>
  10. #include <boost/core/span.hpp>
  11. namespace boost {
  12. namespace mysql {
  13. /**
  14. * \brief A read-only view of a collection of \ref metadata objects.
  15. * \par Object lifetimes
  16. * The object doesn't own the storage for the \ref metadata objects. These are typically
  17. * owned by a \ref results or \ref execution_state object. This view is valid as long
  18. * as the memory allocated for the \ref metadata objects remain valid.
  19. */
  20. using metadata_collection_view = boost::span<const metadata>;
  21. } // namespace mysql
  22. } // namespace boost
  23. #endif