OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:constexpr
(Results
276 - 300
of
1617
) sorted by null
<<
11
12
13
14
15
16
17
18
19
20
>>
/external/libcxx/test/std/experimental/string.view/string.view.capacity/
capacity.pass.cpp
14
//
constexpr
size_type size() const noexcept;
15
//
constexpr
size_type length() const noexcept;
16
//
constexpr
size_type max_size() const noexcept;
17
//
constexpr
bool empty() const noexcept;
26
constexpr
SV sv1;
/external/libcxx/test/std/experimental/string.view/string.view.iterators/
begin.pass.cpp
12
//
constexpr
const_iterator begin() const;
61
constexpr
string_view sv { "123", 3 };
62
constexpr
u16string_view u16sv {u"123", 3 };
63
constexpr
u32string_view u32sv {U"123", 3 };
64
constexpr
wstring_view wsv {L"123", 3 };
/external/libcxx/test/std/iterators/iterator.container/
data.pass.cpp
11
// template <class C>
constexpr
auto data(C& c) -> decltype(c.data()); // C++17
12
// template <class C>
constexpr
auto data(const C& c) -> decltype(c.data()); // C++17
13
// template <class T, size_t N>
constexpr
T* data(T (&array)[N]) noexcept; // C++17
14
// template <class E>
constexpr
const E* data(initializer_list<E> il) noexcept; // C++17
70
static
constexpr
int arrA [] { 1, 2, 3 };
/external/libcxx/test/std/numerics/complex.number/complex.members/
construct.pass.cpp
12
//
constexpr
complex(const T& re = T(), const T& im = T());
43
constexpr
std::complex<T> c;
48
constexpr
std::complex<T> c = 7.5;
53
constexpr
std::complex<T> c(8.5);
58
constexpr
std::complex<T> c(10.5, -9.5);
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
copy.pass.cpp
56
constexpr
T t0(2);
57
constexpr
T t = t0;
62
constexpr
T t0;
63
constexpr
T t = t0;
64
constexpr
Empty e = std::get<0>(t);
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/array/
at.pass.cpp
13
// const_reference operator[] (size_type); //
constexpr
in C++14
15
// const_reference at (size_type); //
constexpr
in C++14
57
constexpr
C c = {1, 2, 3.5};
59
constexpr
T t1 = c.at(0);
62
constexpr
T t2 = c.at(2);
front_back.pass.cpp
14
// const_reference front(); //
constexpr
in C++14
15
// const_reference back(); //
constexpr
in C++14
52
constexpr
C c = {1, 2, 3.5};
54
constexpr
T t1 = c.front();
57
constexpr
T t2 = c.back();
indexing.pass.cpp
13
// const_reference operator[] (size_type); //
constexpr
in C++14
15
// const_reference at (size_type); //
constexpr
in C++14
50
constexpr
C c = {1, 2, 3.5};
52
constexpr
T t1 = c[0];
55
constexpr
T t2 = c[2];
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/complex.number/complex.members/
construct.pass.cpp
12
//
constexpr
complex(const T& re = T(), const T& im = T());
43
constexpr
std::complex<T> c;
48
constexpr
std::complex<T> c = 7.5;
53
constexpr
std::complex<T> c(8.5);
58
constexpr
std::complex<T> c(10.5, -9.5);
/system/core/include/utils/
Compat.h
57
* Needed for cases where something should be
constexpr
if possible, but not
58
* being
constexpr
is fine if in pre-C++11 code (such as a const static float
62
#define
CONSTEXPR
constexpr
64
#define
CONSTEXPR
/art/runtime/arch/
instruction_set.cc
116
static
constexpr
size_t kDefaultStackOverflowReservedBytes = 16 * KB;
117
static
constexpr
size_t kMipsStackOverflowReservedBytes = kDefaultStackOverflowReservedBytes;
118
static
constexpr
size_t kMips64StackOverflowReservedBytes = kDefaultStackOverflowReservedBytes;
120
static
constexpr
size_t kArmStackOverflowReservedBytes = 8 * KB;
121
static
constexpr
size_t kArm64StackOverflowReservedBytes = 8 * KB;
122
static
constexpr
size_t kX86StackOverflowReservedBytes = 8 * KB;
123
static
constexpr
size_t kX86_64StackOverflowReservedBytes = 8 * KB;
/art/runtime/
read_barrier.h
42
static
constexpr
bool kEnableToSpaceInvariantChecks = true;
44
static
constexpr
bool kEnableReadBarrierInvariantChecks = true;
100
// Note: These couldn't be
constexpr
pointers as reinterpret_cast isn't compatible with them.
101
static
constexpr
uintptr_t white_ptr_ = 0x0; // Not marked.
102
static
constexpr
uintptr_t gray_ptr_ = 0x1; // Marked, but not marked through. On mark stack.
103
static
constexpr
uintptr_t black_ptr_ = 0x2; // Marked through. Used for non-moving objects.
104
static
constexpr
uintptr_t rb_ptr_mask_ = 0x3; // The low 2 bits for white|gray|black.
verify_object.h
50
static
constexpr
bool kVerifyStack = kIsDebugBuild;
51
static
constexpr
VerifyObjectFlags kDefaultVerifyFlags = kVerifyNone;
52
static
constexpr
VerifyObjectMode kVerifyObjectSupport =
/external/clang/test/SemaTemplate/
cxx1z-fold-expressions.cpp
3
template<typename ...T>
constexpr
auto sum(T ...t) { return (... + t); }
4
template<typename ...T>
constexpr
auto product(T ...t) { return (t * ...); }
5
template<typename ...T>
constexpr
auto all(T ...t) { return (true && ... && t); }
6
template<typename ...T>
constexpr
auto dumb(T ...t) { return (false && ... && t); }
17
template<typename ...T>
constexpr
auto increment_all(T &...t) {
20
constexpr
bool check() {
74
template<typename T, typename ...Ts>
constexpr
decltype(auto) apply(T &t, Ts ...ts) {
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
MathExpr.java
110
final Expr
constExpr
= left.isDynamic() ? right : left;
118
return varExpr.toInverseCode(value.app(" - (",
constExpr
.toCode()).app(")"));
120
return varExpr.toInverseCode(value.app(" / (",
constExpr
.toCode()).app(")"));
124
.app("(",
constExpr
.toCode())
128
return varExpr.toInverseCode(value.app(" + ",
constExpr
.toCode()));
133
.app("",
constExpr
.toCode())
139
.app(") * (",
constExpr
.toCode())
/external/clang/test/CodeGenCXX/
explicit-instantiation.cpp
24
constexpr
int constexpr_function() { return 0; }
29
constexpr
int a = S<char>().constexpr_function();
34
constexpr
int c = S<int>().constexpr_function();
44
template<typename T>
constexpr
int constexpr_function() { return 0; }
48
constexpr
int e = constexpr_function<char>();
54
constexpr
int g = constexpr_function<int>();
72
template<typename T> struct S {
constexpr
int f() { return 0; } };
73
template<typename T>
constexpr
int f() { return 0; }
94
// The linkage of a used
constexpr
member function can change from linkonce_odr
100
__attribute__((used))
constexpr
int f() { return 0;
[
all
...]
/art/runtime/gc/collector/
immune_spaces_test.cc
60
static
constexpr
size_t kMaxBitmaps = 10;
208
constexpr
size_t kImageSize = 123 * kPageSize;
209
constexpr
size_t kImageOatSize = 321 * kPageSize;
210
constexpr
size_t kOtherSpaceSize= 100 * kPageSize;
255
constexpr
size_t kImage1Size = kPageSize * 17;
256
constexpr
size_t kImage2Size = kPageSize * 13;
257
constexpr
size_t kImage3Size = kPageSize * 3;
258
constexpr
size_t kImage1OatSize = kPageSize * 5;
259
constexpr
size_t kImage2OatSize = kPageSize * 8;
260
constexpr
size_t kImage3OatSize = kPageSize
[
all
...]
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
p3.cpp
59
static
constexpr
auto (*p)(T) = &f;
62
constexpr
int (*f1)(char) = &f;
63
constexpr
double (*f2)(short) = &f;
69
static
constexpr
auto (T::*p) = &K::n;
77
//static
constexpr
auto (*p)(int) -> auto(*)(T) -> auto(*)(char) = &x; // ill-formed
78
static
constexpr
auto (*(*(*p)(int))(T))(char) = &x; // ok
/external/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/
values.pass.cpp
17
// static
constexpr
result_type multiplier = a;
18
// static
constexpr
result_type increment = c;
19
// static
constexpr
result_type modulus = m;
20
// static
constexpr
result_type min() { return c == 0u ? 1u: 0u;}
21
// static
constexpr
result_type max() { return m - 1u;}
22
// static
constexpr
result_type default_seed = 1u;
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.eng/rand.eng.lcong/
values.pass.cpp
17
// static
constexpr
result_type multiplier = a;
18
// static
constexpr
result_type increment = c;
19
// static
constexpr
result_type modulus = m;
20
// static
constexpr
result_type min() { return c == 0u ? 1u: 0u;}
21
// static
constexpr
result_type max() { return m - 1u;}
22
// static
constexpr
result_type default_seed = 1u;
/art/compiler/linker/arm/
relative_patcher_thumb2.h
48
static
constexpr
int32_t kPcDisplacement = 4;
53
static
constexpr
uint32_t kMaxPositiveDisplacement = (1u << 24) - 2 + kPcDisplacement;
54
static
constexpr
uint32_t kMaxNegativeDisplacement = (1u << 24) - kPcDisplacement;
/external/clang/test/CXX/drs/
dr16xx.cpp
14
constexpr
int f() { return 0; } // expected-warning 0-1{{will not be implicitly 'const'}}
16
constexpr
int f(NonLiteral &) { return 0; }
17
constexpr
int f(NonLiteral) { return 0; } // expected-error {{not a literal type}}
/external/clang/test/Parser/
cxx11-user-defined-literals.cpp
41
constexpr
char operator"" _id(char c) { return c; }
42
constexpr
wchar_t operator"" _id(wchar_t c) { return c; }
43
constexpr
char16_t operator"" _id(char16_t c) { return c; }
44
constexpr
char32_t operator"" _id(char32_t c) { return c; }
47
constexpr
const char operator"" _id(const char *p, size_t n) { return *p; }
48
constexpr
const wchar_t operator"" _id(const wchar_t *p, size_t n) { return *p; }
49
constexpr
const char16_t operator"" _id(const char16_t *p, size_t n) { return *p; }
50
constexpr
const char32_t operator"" _id(const char32_t *p, size_t n) { return *p; }
52
constexpr
unsigned long long operator"" _id(unsigned long long n) { return n; }
53
constexpr
long double operator"" _id(long double d) { return d;
[
all
...]
/external/libcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.nonvirtuals/
default_ctor.pass.cpp
14
//
constexpr
error_category() noexcept;
27
constexpr
test1() = default; // won't compile if error_category() is not
constexpr
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.observe/
op_arrow.pass.cpp
12
//
constexpr
T* optional<T>::operator->();
28
constexpr
int test() const {return 3;}
37
constexpr
optional<X> opt(X{});
Completed in 2854 milliseconds
<<
11
12
13
14
15
16
17
18
19
20
>>