Move <dynarray> into include/experimental, and into the std::experimental namespace, since it's not part of C++14, but of an upcoming TS
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@194614 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -17,15 +17,17 @@
|
||||
|
||||
#if _LIBCPP_STD_VER > 11
|
||||
|
||||
#include <dynarray>
|
||||
#include <experimental/dynarray>
|
||||
#include <cassert>
|
||||
|
||||
#include <algorithm>
|
||||
#include <complex>
|
||||
#include <string>
|
||||
|
||||
using std::experimental::dynarray;
|
||||
|
||||
template <class T>
|
||||
void dyn_test ( const std::dynarray<T> &dyn, size_t sz ) {
|
||||
void dyn_test ( const dynarray<T> &dyn, size_t sz ) {
|
||||
assert ( dyn.size () == sz );
|
||||
assert ( dyn.max_size () == sz );
|
||||
assert ( dyn.empty () == ( sz == 0 ));
|
||||
@@ -33,7 +35,7 @@ void dyn_test ( const std::dynarray<T> &dyn, size_t sz ) {
|
||||
|
||||
template <class T>
|
||||
void test ( std::initializer_list<T> vals ) {
|
||||
typedef std::dynarray<T> dynA;
|
||||
typedef dynarray<T> dynA;
|
||||
|
||||
dynA d1 ( vals );
|
||||
dyn_test ( d1, vals.size ());
|
||||
|
||||
Reference in New Issue
Block a user