MySQL 8.3.0
Source Code Documentation
span.h File Reference
#include <array>
#include <cassert>
#include <cstddef>
#include <iterator>
#include <limits>
#include <type_traits>
#include "mysql/harness/stdx/type_traits.h"

Go to the source code of this file.

Classes

struct  stdx::detail::has_data< C, class >
 
struct  stdx::detail::has_data< C, std::void_t< decltype(std::data(std::declval< C >()))> >
 
struct  stdx::detail::has_size< C, class >
 
struct  stdx::detail::has_size< C, std::void_t< decltype(std::size(std::declval< C >()))> >
 
struct  stdx::detail::is_std_array_impl< T, class >
 
struct  stdx::detail::is_std_array_impl< std::array< T, Extend > >
 
struct  stdx::detail::is_std_array< T >
 
struct  stdx::detail::is_span_impl< T, class >
 
struct  stdx::detail::is_span_impl< span< T, Extend > >
 
struct  stdx::detail::is_span< T >
 
struct  stdx::detail::is_contiguous_range< C >
 
struct  stdx::detail::is_sized_range< C >
 
struct  stdx::detail::is_compatible_element< C, E, class >
 
struct  stdx::detail::is_compatible_element< C, E, std::void_t< decltype(std::data(std::declval< C >()))> >
 
struct  stdx::detail::is_compatible_range< R, E >
 
struct  stdx::detail::is_array_convertible< From, To >
 
class  stdx::detail::iterator< T >
 
struct  stdx::detail::span_size< T, Extent >
 
struct  stdx::detail::span_size< T, dynamic_extent >
 
struct  stdx::detail::extent_size< Extent, Offset, Count >
 
struct  stdx::detail::extent_size< Extent, Offset, dynamic_extent >
 
class  stdx::span< T, Extent >
 

Namespaces

namespace  stdx
 
namespace  stdx::detail
 

Functions

template<class Container >
 stdx::span (Container &) -> span< typename Container::value_type >
 
template<class Container >
 stdx::span (Container const &) -> span< const typename Container::value_type >
 
template<class T , std::size_t N>
span< const std::byte, detail::span_size< T, N >::size > stdx::as_bytes (span< T, N > spn) noexcept
 get a view to underlying bytes of a span 'spn'. More...
 
template<class T , std::size_t N, std::enable_if_t<!std::is_const_v< T >, int > = 0>
span< std::byte, detail::span_size< T, N >::size > stdx::as_writable_bytes (span< T, N > spn) noexcept
 get a writable view to underlying bytes of a span 'spn'. More...
 

Variables

constexpr std::size_t stdx::dynamic_extent