Go to the source code of this file.
|
| TEST (make_array, base_case) |
|
| TEST (make_array, deduce_size_primitive) |
|
| TEST (make_array, deduce_size_class) |
|
| TEST (make_array, deduce_everything) |
|
| TEST (make_array, fixed_common_type) |
|
| TEST (make_array, deduced_common_type) |
|
| TEST (make_array_with, example) |
|
TEST |
( |
make_array |
, |
|
|
base_case |
|
|
) |
| |
Definition at line 23 of file ArrayTest.cpp.
References EXPECT_EQ, and value.
24 auto arr = make_array<int>();
26 is_same<
typename decltype(arr)::value_type,
int>::
value,
#define EXPECT_EQ(val1, val2)
static const char *const value
TEST |
( |
make_array |
, |
|
|
deduce_size_primitive |
|
|
) |
| |
Definition at line 31 of file ArrayTest.cpp.
References EXPECT_EQ, and value.
32 auto arr = make_array<int>(1, 2, 3, 4, 5);
34 is_same<
typename decltype(arr)::value_type,
int>::
value,
#define EXPECT_EQ(val1, val2)
static const char *const value
TEST |
( |
make_array |
, |
|
|
deduce_size_class |
|
|
) |
| |
Definition at line 39 of file ArrayTest.cpp.
References EXPECT_EQ, string, and value.
40 auto arr = make_array<string>(
string{
"foo"},
string{
"bar"});
#define EXPECT_EQ(val1, val2)
static const char *const value
TEST |
( |
make_array |
, |
|
|
deduce_everything |
|
|
) |
| |
TEST |
( |
make_array |
, |
|
|
fixed_common_type |
|
|
) |
| |
Definition at line 57 of file ArrayTest.cpp.
References EXPECT_EQ, and value.
58 auto arr = make_array<double>(1.0, 2.5f, 3, 4, 5);
60 is_same<
typename decltype(arr)::value_type,
double>::
value,
#define EXPECT_EQ(val1, val2)
static const char *const value
TEST |
( |
make_array |
, |
|
|
deduced_common_type |
|
|
) |
| |
Definition at line 65 of file ArrayTest.cpp.
References EXPECT_EQ, f, folly::make_array(), and value.
68 is_same<
typename decltype(arr)::value_type,
double>::
value,
#define EXPECT_EQ(val1, val2)
constexpr array_detail::return_type< D, TList... > make_array(TList &&...t)
static const char *const value
TEST |
( |
make_array_with |
, |
|
|
example |
|
|
) |
| |
Definition at line 73 of file ArrayTest.cpp.
References EXPECT_EQ, folly::array_detail::make_array_with(), and folly::make_array_with().
75 constexpr
int operator()(
size_t index)
const {
82 constexpr
auto actual = make_array_with<3>(make_item{});
83 constexpr
auto expected = make_array<int>(4, 5, 6);
#define EXPECT_EQ(val1, val2)
FOLLY_ALWAYS_INLINE FOLLY_ATTR_VISIBILITY_HIDDEN constexpr auto make_array_with(MakeItem const &make, index_sequence< Index... >)
constexpr auto make_array_with(MakeItem const &make)