¡@

Home 

c++ Programming Glossary: clause

C and C++ : Partial initialization of automatic structure

http://stackoverflow.com/questions/10828294/c-and-c-partial-initialization-of-automatic-structure

initialize an object of type T means if T is a class type clause 9 with a user declared constructor 12.1 then the default constructor..

Unnamed/anonymous namespaces vs. static functions

http://stackoverflow.com/questions/154469/unnamed-anonymous-namespaces-vs-static-functions

file they're created in as if you had an implicit using clause to them. My question is why or when would this be preferable..

Can main function call itself in C++?

http://stackoverflow.com/questions/2128321/can-main-function-call-itself-in-c

a message in our particular case according to the second clause. For this particular problem on gcc the pedantic option will..

Optimizing away a “while(1);” in C++0x

http://stackoverflow.com/questions/3592557/optimizing-away-a-while1-in-c0x

all the complex calculations in the loop. But without the clause you have quoted the compiler has to prove two things before.. is pretty easy proving 2 is the halting problem. With the clause it may assume the loop terminates and get a parallelisation..

Unsequenced value computations (a.k.a sequence points)

http://stackoverflow.com/questions/3852768/unsequenced-value-computations-a-k-a-sequence-points

OP is not correct. This is because as @Potatoswatter notes clause 13.6 does not apply. See the disclaimer in 13.6 1 These candidate..

Value initialization and Non POD types

http://stackoverflow.com/questions/3931312/value-initialization-and-non-pod-types

initialize an object of type Tmeans if T is a class type clause 9 with a user declared constructor 12.1 then the default constructor..

RAII and smart pointers in C++

http://stackoverflow.com/questions/395123/raii-and-smart-pointers-in-c

the file Java solves the second problem using a finally clause try File file new File path to file Do stuff with file finally..

Undefined Behavior and Sequence Points

http://stackoverflow.com/questions/4176328/undefined-behavior-and-sequence-points

indicated are the built in operators as described in clause 5. When one of these operators is overloaded clause 13 in a.. in clause 5. When one of these operators is overloaded clause 13 in a valid context thus designating a user defined operator..

What are Aggregates and PODs and how/why are they special?

http://stackoverflow.com/questions/4178175/what-are-aggregates-and-pods-and-how-why-are-they-special

standard C 03 8.5.1 §1 An aggregate is an array or a class clause 9 with no user declared constructors 12.1 no private or protected.. 12.1 no private or protected non static data members clause 11 no base classes clause 10 and no virtual functions 10.3 ... non static data members clause 11 no base classes clause 10 and no virtual functions 10.3 . So OK let's parse this definition...

Is short-circuiting boolean operators mandated in C/C++? And evaluation order?

http://stackoverflow.com/questions/628526/is-short-circuiting-boolean-operators-mandated-in-c-c-and-evaluation-order

C standards. C standard says there should be an equivalent clause in the C standard 1.9.18 In the evaluation of the following.. this paragraph are the built in operators as described in clause 5. When one of these operators is overloaded clause 13 in a.. in clause 5. When one of these operators is overloaded clause 13 in a valid context thus designating a user defined operator..

Difference between try-catch syntax for function

http://stackoverflow.com/questions/6756931/difference-between-try-catch-syntax-for-function

try block handlers. For Standardese Fans C standard clause 15.3 paragraph 15 If a return statement appears in a handler.. of a constructor the program is ill formed. C standard clause 15.3 paragraph 16 The exception being handled is rethrown if..

What is a lambda expression in C++11?

http://stackoverflow.com/questions/7627098/what-is-a-lambda-expression-in-c11

you want to access other variables you can use the capture clause the of the expression which has so far been unused in these..

What is “rvalue reference for *this”?

http://stackoverflow.com/questions/8610571/what-is-rvalue-reference-for-this

exists. Additionally this is the important bit for us same clause p4 For non static member functions the type of the implicit..

Why is my log in the std namespace?

http://stackoverflow.com/questions/11892976/why-is-my-log-in-the-std-namespace

17.6.1.2 paragraph 4 emphasis mine Except as noted in Clauses 18 through 30 and Annex D the contents of each header cname.. it is reserved other than as explicitly allowed by this Clause its behavior is undefined. You on the other hand may not declare..

Why aren't my include guards preventing recursive inclusion and multiple symbol definitions?

http://stackoverflow.com/questions/14909997/why-arent-my-include-guards-preventing-recursive-inclusion-and-multiple-symbol

There can be more than one definition of a class type Clause 9 enumeration type 7.2 inline function with external linkage.. inline function with external linkage 7.1.2 class template Clause 14 non static function template 14.5.6 static data member of.. is the name of a variable or a function or a named class Clause 9 or an unnamed class defined in a typedef declaration in which..

Does initialization entail lvalue-to-rvalue conversion? Is `int x = x;` UB?

http://stackoverflow.com/questions/14935722/does-initialization-entail-lvalue-to-rvalue-conversion-is-int-x-x-ub

3.10 1 says The discussion of each built in operator in Clause 5 indicates the category of the value it yields and the value.. value of the initializer expression . Standard conversions Clause 4 will be used if necessary to convert the initializer expression.. in an unevaluated operand or a subexpression thereof Clause 5 expr the value contained in the referenced object is not accessed...

Is it legal to declare a constexpr initializer_list object?

http://stackoverflow.com/questions/16063123/is-it-legal-to-declare-a-constexpr-initializer-list-object

basic.types 10 sub bullet class types a class type Clause 9 that has all of the following properties it has a trivial..

Are there cases where downcasting an actual Base to a Derived would be defined?

http://stackoverflow.com/questions/20263888/are-there-cases-where-downcasting-an-actual-base-to-a-derived-would-be-defined

no virtual base classes 10.1 has the same access control Clause 11 for all non static data members has no non standard layout..

are C functions declared in <c____> headers guaranteed to be in the global namespace as well as std?

http://stackoverflow.com/questions/2587445/are-c-functions-declared-in-c-headers-guaranteed-to-be-in-the-global-names

as specified in ISO IEC 9899 1990 Programming Languages C Clause 7 or ISO IEC 1990 Programming Languages ”C AMENDMENT 1 C Integrity.. IEC 1990 Programming Languages ”C AMENDMENT 1 C Integrity Clause 7 as appropriate as if by inclusion. In the C Standard Library..

Optimizing away a “while(1);” in C++0x

http://stackoverflow.com/questions/3592557/optimizing-away-a-while1-in-c0x

no synchronization operations 1.10 or atomic operations Clause 29 may be assumed by the implementation to terminate. Note This..

Pure virtual functions may not have an inline definition. Why?

http://stackoverflow.com/questions/4174694/pure-virtual-functions-may-not-have-an-inline-definition-why

functions that are virtual and have the pure specifier 0 Clause 10.4 paragraph 2 of C 03 tells us what an abstract class is..

Polymorphism in c++

http://stackoverflow.com/questions/5854581/polymorphism-in-c

are implicit conversions defined for built in types. Clause conv enumerates the full set of such conversions. A standard..

Base pointer to array of derived objects

http://stackoverflow.com/questions/7197677/base-pointer-to-array-of-derived-objects

a prvalue of type œpointer to cv B where B is a base class Clause 10 of D. If B is an inaccessible Clause 11 or ambiguous 10.2.. B is a base class Clause 10 of D. If B is an inaccessible Clause 11 or ambiguous 10.2 base class of D a program that necessitates..

Why can template instances not be deduced in `std::reference_wrapper`s?

http://stackoverflow.com/questions/8513050/why-can-template-instances-not-be-deduced-in-stdreference-wrappers

”end note §14.8.1 temp.arg.explicit p6 Implicit conversions Clause 4 will be performed on a function argument to convert it to..

C++ implicit conversions

http://stackoverflow.com/questions/867462/c-implicit-conversions

conversions and are used for implicit type conversions Clause 4 for initialization 8.5 and for explicit type conversions 5.4.. 10.2 12.3.2 . Conversions obey the access control rules Clause 11 . Access control is applied after ambiguity resolution 3.4..

const and global

http://stackoverflow.com/questions/9032475/const-and-global

Reference C 03 Standard Annex C Compatibility C.1.2 Clause 3 basic concepts Change A name of file scope that is explicitly..