#include <folly/container/Access.h>
#include <array>
#include <initializer_list>
#include <vector>
#include <folly/portability/GTest.h>
Go to the source code of this file.
|
| TEST_F (AccessTest, size_vector) |
|
| TEST_F (AccessTest, size_array) |
|
| TEST_F (AccessTest, size_carray) |
|
| TEST_F (AccessTest, size_initializer_list) |
|
| TEST_F (AccessTest, empty_vector) |
|
| TEST_F (AccessTest, empty_array) |
|
| TEST_F (AccessTest, empty_carray) |
|
| TEST_F (AccessTest, empty_initializer_list) |
|
| TEST_F (AccessTest, data_vector) |
|
| TEST_F (AccessTest, data_array) |
|
| TEST_F (AccessTest, data_carray) |
|
| TEST_F (AccessTest, data_initializer_list) |
|
Definition at line 31 of file AccessTest.cpp.
References a, EXPECT_EQ, and folly::size().
32 constexpr
auto const a = std::array<int, 3>{{1, 2, 3}};
#define EXPECT_EQ(val1, val2)
constexpr auto size(C const &c) -> decltype(c.size())
Definition at line 37 of file AccessTest.cpp.
References a, EXPECT_EQ, and folly::size().
38 constexpr
int const a[3] = {1, 2, 3};
#define EXPECT_EQ(val1, val2)
constexpr auto size(C const &c) -> decltype(c.size())
Definition at line 53 of file AccessTest.cpp.
References a, folly::empty(), EXPECT_FALSE, and EXPECT_TRUE.
55 constexpr
auto const a = std::array<int, 3>{{1, 2, 3}};
60 constexpr
auto const a = std::array<int, 0>{{}};
constexpr auto empty(C const &c) -> decltype(c.empty())
#define EXPECT_TRUE(condition)
#define EXPECT_FALSE(condition)
Definition at line 66 of file AccessTest.cpp.
References a, folly::empty(), and EXPECT_FALSE.
67 constexpr
int const a[3] = {1, 2, 3};
constexpr auto empty(C const &c) -> decltype(c.empty())
#define EXPECT_FALSE(condition)
Definition at line 79 of file AccessTest.cpp.
References folly::data(), and EXPECT_EQ.
81 auto v = std::vector<int>{1, 2, 3};
#define EXPECT_EQ(val1, val2)
constexpr auto data(C &c) -> decltype(c.data())
Definition at line 86 of file AccessTest.cpp.
References a, data, folly::data(), and EXPECT_EQ.
87 constexpr
auto const a = std::array<int, 3>{{1, 2, 3}};
#define EXPECT_EQ(val1, val2)
constexpr auto data(C &c) -> decltype(c.data())
static constexpr uint64_t data[1]
Definition at line 92 of file AccessTest.cpp.
References a, data, folly::data(), and EXPECT_EQ.
93 constexpr
int const a[3] = {1, 2, 3};
#define EXPECT_EQ(val1, val2)
constexpr auto data(C &c) -> decltype(c.data())
static constexpr uint64_t data[1]