OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:constexpr
(Results
51 - 75
of
282
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/external/clang/test/SemaCXX/
constexpr-nqueens.cpp
9
constexpr
Board() : State(0), Failed(false) {}
10
constexpr
Board(const Board &O) : State(O.State), Failed(O.Failed) {}
11
constexpr
Board(uint64_t State, bool Failed = false) :
13
constexpr
Board addQueen(int Row, int Col) {
16
constexpr
int getQueenRow(int Col) {
19
constexpr
bool ok(int Row, int Col) {
22
constexpr
bool okRecurse(int Row, int Col, int CheckCol) {
29
constexpr
bool at(int Row, int Col) {
32
constexpr
bool check(const char *, int=0, int=0);
35
constexpr
Board buildBoardRecurse(int N, int Col, const Board &B)
[
all
...]
constexpr-steps.cpp
11
constexpr
bool steps(int n) {
cxx0x-class.cpp
23
static const float x = 5.0f; // expected-warning {{requires '
constexpr
'}} expected-note {{add '
constexpr
'}}
24
static const float y = foo(); // expected-warning {{requires '
constexpr
'}} expected-note {{add '
constexpr
'}}
25
static
constexpr
float x2 = 5.0f;
26
static
constexpr
float y2 = foo(); // expected-error {{must be initialized by a constant expression}} expected-note {{non-
constexpr
function 'foo'}}
discrim-union.cpp
7
template<typename T>
constexpr
T &&forward(typename remove_reference<T>::type &t) noexcept { return static_cast<T&&>(t); }
8
template<typename T>
constexpr
T &&forward(typename remove_reference<T>::type &&t) noexcept { return static_cast<T&&>(t); }
9
template<typename T>
constexpr
typename remove_reference<T>::type &&move(T &&t) noexcept { return static_cast<typename remove_reference<T>::type&&>(t); }
31
constexpr
either_impl(select<0>, T &&t) : val(move(t)) {}
34
constexpr
either_impl(select<N>, U &&u) : rest(select<N-1>(), move(u)) {}
36
constexpr
static unsigned index(type<T>) { return 0; }
38
constexpr
static unsigned index(type<U> t) {
49
constexpr
const T &get(select<0>) { return val; }
50
template<unsigned N>
constexpr
const decltype(static_cast<const rest_t&>(rest).get(select<N-1>{})) get(select<N>) {
60
constexpr
a(U &&...u) : value{forward<U>(u)...} {
[
all
...]
constant-expression-cxx1y.cpp
5
constexpr
S(int);
11
constexpr
int &get(int n) { return arr[n]; }
12
constexpr
const int &get(int n) const { return arr[n]; }
19
// Compound-statements can be used in
constexpr
functions.
20
constexpr
int e() {{{{}} return 5; }}
23
// Types can be defined in
constexpr
functions.
24
constexpr
int f() {
28
constexpr
S(E e) : e(e) {}
29
constexpr
int get() { return e; }
37
// Variables can be declared in
constexpr
functions
[
all
...]
constexpr-duffs-device.cpp
4
constexpr
void copy(const char *from, unsigned long count, char *to) {
21
constexpr
S() : stuff{} {
26
constexpr
bool streq(const char *a, const char *b) {
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.nonmember/
op_times_rep.pass.cpp
15
//
constexpr
20
//
constexpr
38
constexpr
std::chrono::nanoseconds ns(3);
39
constexpr
std::chrono::nanoseconds ns2 = ns * 5;
41
constexpr
std::chrono::nanoseconds ns3 = 6 * ns;
op_mod_duration.pass.cpp
15
//
constexpr
44
constexpr
std::chrono::nanoseconds ns1(15);
45
constexpr
std::chrono::nanoseconds ns2(6);
46
constexpr
std::chrono::nanoseconds r = ns1 % ns2;
50
constexpr
std::chrono::microseconds us1(15);
51
constexpr
std::chrono::nanoseconds ns2(28);
52
constexpr
std::chrono::nanoseconds r = us1 % ns2;
56
constexpr
std::chrono::duration<int, std::ratio<3, 5> > s1(6);
57
constexpr
std::chrono::duration<int, std::ratio<2, 3> > s2(3);
58
constexpr
std::chrono::duration<int, std::ratio<1, 15> > r = s1 % s2
[
all
...]
op_divide_duration.pass.cpp
15
//
constexpr
46
constexpr
std::chrono::nanoseconds ns1(15);
47
constexpr
std::chrono::nanoseconds ns2(5);
51
constexpr
std::chrono::microseconds us1(15);
52
constexpr
std::chrono::nanoseconds ns2(5);
56
constexpr
std::chrono::duration<int, std::ratio<2, 3> > s1(30);
57
constexpr
std::chrono::duration<int, std::ratio<3, 5> > s2(5);
61
constexpr
std::chrono::duration<int, std::ratio<2, 3> > s1(30);
62
constexpr
std::chrono::duration<double, std::ratio<3, 5> > s2(5);
op_divide_rep.pass.cpp
15
//
constexpr
31
constexpr
std::chrono::nanoseconds ns(15);
32
constexpr
std::chrono::nanoseconds ns2 = ns / 5;
op_mod_rep.pass.cpp
15
//
constexpr
31
constexpr
std::chrono::nanoseconds ns(15);
32
constexpr
std::chrono::nanoseconds ns2 = ns % 6;
op_+.pass.cpp
49
constexpr
std::chrono::seconds s1(3);
50
constexpr
std::chrono::seconds s2(5);
51
constexpr
std::chrono::seconds r = s1 + s2;
55
constexpr
std::chrono::seconds s1(3);
56
constexpr
std::chrono::microseconds s2(5);
57
constexpr
std::chrono::microseconds r = s1 + s2;
61
constexpr
std::chrono::duration<int, std::ratio<2, 3> > s1(3);
62
constexpr
std::chrono::duration<int, std::ratio<3, 5> > s2(5);
63
constexpr
std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2;
67
constexpr
std::chrono::duration<int, std::ratio<2, 3> > s1(3)
[
all
...]
op_-.pass.cpp
15
//
constexpr
50
constexpr
std::chrono::seconds s1(3);
51
constexpr
std::chrono::seconds s2(5);
52
constexpr
std::chrono::seconds r = s1 - s2;
56
constexpr
std::chrono::seconds s1(3);
57
constexpr
std::chrono::microseconds s2(5);
58
constexpr
std::chrono::microseconds r = s1 - s2;
62
constexpr
std::chrono::duration<int, std::ratio<2, 3> > s1(3);
63
constexpr
std::chrono::duration<int, std::ratio<3, 5> > s2(5);
64
constexpr
std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2
[
all
...]
/external/clang/test/CXX/over/over.oper/over.literal/
p7.cpp
4
constexpr
int operator "" _a(const char *c) {
/external/clang/test/CodeGenCXX/
typeid-cxx11.cpp
13
template<typename T>
constexpr
Item item(const char *name) {
22
constexpr
Item items[] = {
27
constexpr
auto &x = items[0].ti;
30
constexpr
auto &y = typeid(B{});
const-init-cxx1y.cpp
4
constexpr
A() : n(1) {}
10
constexpr
B() {
23
constexpr
int f(int &r) { r *= 9; return r - 12; }
/external/clang/test/CXX/temp/temp.spec/temp.explicit/
p1-0x.cpp
12
constexpr
int f() { return 0; } // expected-warning{{C++1y}}
15
template
constexpr
int Y<int>::f() const; // expected-error{{explicit instantiation cannot be '
constexpr
'}}
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.cons/
convert_exact.pass.cpp
31
constexpr
std::chrono::milliseconds ms(1);
32
constexpr
std::chrono::microseconds us = ms;
/external/clang/test/CXX/class/class.union/
p2-0x.cpp
6
static
constexpr
int k1 = 0;
9
static
constexpr
double k4 = k2;
10
static const double k5 = k4; // expected-error {{requires '
constexpr
' specifier}} expected-note {{add '
constexpr
'}}
14
constexpr
int U1::k1;
15
constexpr
int U1::k2;
27
template<typename T>
constexpr
int U2<T>::k1 = sizeof(U2<T>);
/external/clang/test/Lexer/
cxx0x_keyword_as_cxx98.cpp
3
#define
constexpr
const
macro
4
constexpr
int x = 0;
5
#undef
constexpr
macro
14
int CONCAT(
constexpr
,ession);
31
int
constexpr
; // expected-warning {{'
constexpr
' is a keyword in C++11}}
variable
/external/clang/test/SemaTemplate/
instantiate-self.cpp
20
friend
constexpr
int operator+(int, C) { return 4; }
50
// FIXME: PR12298: Recursive
constexpr
function template instantiation leads to
55
constexpr
T f(T k) { return g(k); }
56
constexpr
T g(T k) {
61
constexpr
int x = A<int>().f(5);
65
template<typename T>
constexpr
T f(T);
66
template<typename T>
constexpr
T g(T t) {
70
template<typename T>
constexpr
T f(T t) {
79
template<typename T>
constexpr
T g(T t) {
82
template<typename T>
constexpr
T f(T t)
[
all
...]
constexpr-instantiate.cpp
5
template<typename T> static
constexpr
T get() { return T(); }
11
constexpr
int j = A::get<int>();
13
template<typename T>
constexpr
int consume(T);
17
template<typename T>
constexpr
int consume(T) { return 0; }
19
constexpr
int l = consume(0);
21
constexpr
int m = k; // expected-error {{constant expression}} expected-note {{initializer of 'k'}}
25
template<typename T>
constexpr
T f(T n) { return n; }
36
template<typename T>
constexpr
T f(T n) { return n; }
46
template<typename T>
constexpr
T f(T t) { return t; }
65
constexpr
int m = S<int>::k; // o
[
all
...]
/external/clang/test/PCH/
cxx1y-default-initializer.cpp
13
template<typename T>
constexpr
A make() { return A {}; }
14
template<typename T>
constexpr
A make(T t) { return A { t }; }
18
constexpr
B(int k) : z1(k) {}
/external/chromium_org/tools/gyp/test/mac/clang-cxx-language-standard/
c++98.cc
14
constexpr
,
enumerator in enum:cxx11_keywords
/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.aggr/
p7.cpp
6
constexpr
S ss = { 1, "asdf" };
14
constexpr
X a[] = { 1, 2, 3, 4, 5, 6 };
15
constexpr
X b[2] = { { 1, 2, 3 }, { 4, 5, 6 } };
17
constexpr
bool operator==(X a, X b) {
Completed in 888 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>