mirror of
https://github.com/boostorg/container_hash.git
synced 2025-08-04 15:04:39 +02:00
Add is_contiguous_range_test3 (refs #28)
This commit is contained in:
@@ -101,3 +101,4 @@ run hash_unordered_map_test.cpp ;
|
|||||||
run is_range_test3.cpp ;
|
run is_range_test3.cpp ;
|
||||||
run is_contiguous_range_test2.cpp ;
|
run is_contiguous_range_test2.cpp ;
|
||||||
run is_unordered_range_test2.cpp ;
|
run is_unordered_range_test2.cpp ;
|
||||||
|
run is_contiguous_range_test3.cpp ;
|
||||||
|
25
test/is_contiguous_range_test3.cpp
Normal file
25
test/is_contiguous_range_test3.cpp
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
// Copyright 2022 Peter Dimov.
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
|
#include <boost/container_hash/is_contiguous_range.hpp>
|
||||||
|
#include <boost/core/lightweight_test_trait.hpp>
|
||||||
|
#include <cstddef>
|
||||||
|
|
||||||
|
struct X1
|
||||||
|
{
|
||||||
|
char const* begin() const;
|
||||||
|
char const* end() const;
|
||||||
|
std::size_t size() const;
|
||||||
|
|
||||||
|
char data[16];
|
||||||
|
};
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
using boost::container_hash::is_contiguous_range;
|
||||||
|
|
||||||
|
BOOST_TEST_TRAIT_FALSE((is_contiguous_range<X1>));
|
||||||
|
|
||||||
|
return boost::report_errors();
|
||||||
|
}
|
Reference in New Issue
Block a user