staticlib_io  1.2.11
 All Classes Namespaces Files Functions Variables
Classes | Namespaces | Functions
span.hpp File Reference
#include <cstdint>
#include <array>
#include <ios>
#include <string>
#include <vector>
#include "staticlib/config.hpp"
#include "staticlib/support.hpp"

Go to the source code of this file.

Classes

class  staticlib::io::bad_span_access_exception
 Span-specific exception. More...
class  staticlib::io::span< T >
 Non-owning range of elements in contiguous memory. More...

Namespaces

namespace  staticlib
namespace  staticlib::io

Functions

template<typename T , typename IntType >
span< T > staticlib::io::make_span (T *buffer, IntType length)
 Helper function, creates span instance.
template<typename T , size_t Length>
span< T > staticlib::io::make_span (std::array< T, Length > &buffer)
 Helper function, creates span instance from array.
template<typename T >
span< T > staticlib::io::make_span (std::vector< T > &buffer)
 Helper function, creates span instance from vector.