v1
Brett 2024-03-10 15:49:52 -04:00
parent 1dc08ca723
commit 62a973246d
2 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.5)
include(cmake/color.cmake)
set(BLT_VERSION 0.14.9)
set(BLT_VERSION 0.14.10)
set(BLT_TEST_VERSION 0.0.1)
set(BLT_TARGET BLT)

View File

@ -344,6 +344,9 @@ namespace blt
constexpr span() noexcept: size_(0), data_(nullptr)
{}
constexpr span(T* data, size_type count): size_(count), data_(data)
{}
template<class It, std::size_t SIZE, typename std::enable_if_t<extent != dynamic_extent && SIZE == extent, bool> = true>
constexpr explicit span(It first, size_type count): size_(count), data_(&*first)
{}