QuickCppLib 0.10
Eliminate all the tedious hassle when making state-of-the-art C++ 14 - 23 libraries!
Loading...
Searching...
No Matches
quickcpplib::_xxx::span::span< T, Extent > Class Template Reference

#include "span.hpp"

Inheritance diagram for quickcpplib::_xxx::span::span< T, Extent >:

Public Member Functions

constexpr span (_base v) noexcept
 
template<class U >
requires ( !std::is_same_v<std::decay_t<U>, span> && !std::is_same_v<std::decay_t<U>, _base> && !std::is_same_v<std::decay_t<U>, _const_base> && std::is_convertible<typename std::decay_t<U>::pointer, typename _base::pointer>::value && requires { declval<U>().data(); } && requires { declval<U>().size(); })
constexpr span (U &&v) noexcept
 

Public Attributes

elements
 STL member.
 

Constructor & Destructor Documentation

◆ span() [1/2]

template<class T , size_t Extent = std::dynamic_extent>
constexpr quickcpplib::_xxx::span::span< T, Extent >::span ( _base  v)
inlineconstexprnoexcept
65 : _base(v)
66 {
67 }

◆ span() [2/2]

template<class T , size_t Extent = std::dynamic_extent>
template<class U >
requires ( !std::is_same_v<std::decay_t<U>, span> && !std::is_same_v<std::decay_t<U>, _base> && !std::is_same_v<std::decay_t<U>, _const_base> && std::is_convertible<typename std::decay_t<U>::pointer, typename _base::pointer>::value && requires { declval<U>().data(); } && requires { declval<U>().size(); })
constexpr quickcpplib::_xxx::span::span< T, Extent >::span ( U &&  v)
inlineconstexprnoexcept
79 : _base(v.data(), v.size())
80 {
81 }

Member Data Documentation

◆ elements

T std::span< T >::elements
inherited

STL member.


The documentation for this class was generated from the following file: