mirror of
https://github.com/boostorg/histogram.git
synced 2025-05-09 23:04:07 +00:00
removing obsolete file
This commit is contained in:
parent
0a6c485d6b
commit
ed573cb40f
@ -1,48 +0,0 @@
|
||||
// Copyright 2019 Hans Dembinski
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt
|
||||
// or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#ifndef BOOST_HISTOGRAM_DETAIL_DATA_HPP
|
||||
#define BOOST_HISTOGRAM_DETAIL_DATA_HPP
|
||||
|
||||
#include <initializer_list>
|
||||
|
||||
namespace boost {
|
||||
namespace histogram {
|
||||
namespace detail {
|
||||
|
||||
#if __cpp_lib_nonmember_container_access >= 201411
|
||||
|
||||
using std::data;
|
||||
|
||||
#else
|
||||
|
||||
template <class C>
|
||||
constexpr auto data(C& c) -> decltype(c.data()) {
|
||||
return c.data();
|
||||
}
|
||||
|
||||
template <class C>
|
||||
constexpr auto data(const C& c) -> decltype(c.data()) {
|
||||
return c.data();
|
||||
}
|
||||
|
||||
template <class T, std::size_t N>
|
||||
constexpr T* data(T (&array)[N]) noexcept {
|
||||
return array;
|
||||
}
|
||||
|
||||
template <class E>
|
||||
constexpr const E* data(std::initializer_list<E> il) noexcept {
|
||||
return il.begin();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace detail
|
||||
} // namespace histogram
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_HISTOGRAM_DETAIL_DATA_HPP
|
Loading…
x
Reference in New Issue
Block a user