ranges
parent
1dc08ca723
commit
62a973246d
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
{}
|
||||
|
|
Loading…
Reference in New Issue