¡@

Home 

c++ Programming Glossary: safety

Does the 'mutable' keyword have any purpose other than allowing the variable to be modified by a const function?

http://stackoverflow.com/questions/105014/does-the-mutable-keyword-have-any-purpose-other-than-allowing-the-variable-to

as mutable allowing const functions to lock it for thread safety reasons but to be honest it feels like a bit of a hack. c keyword..

Which I/O library do you use in your C++ code? [closed]

http://stackoverflow.com/questions/119098/which-i-o-library-do-you-use-in-your-c-code

non POD types. The step forward the C made over C was type safety. iostreams was designed to be explicitly type safe. Thus assignment.. willing to put up with the verboseness to ensure runtime safety. But we can mitigate the verbosity by using Boost Format Library..

Are function static variables thread-safe in GCC?

http://stackoverflow.com/questions/1270927/are-function-static-variables-thread-safe-in-gcc

this feature of GCC c gcc static initialization thread safety share improve this question No it means that the initialization..

Sizeof array passed as parameter

http://stackoverflow.com/questions/1328223/sizeof-array-passed-as-parameter

from C What does the standard say Why is the strict type safety of C dropped c arrays standards sizeof share improve this..

C++ Vector of Pointers to Objects

http://stackoverflow.com/questions/1361139/c-vector-of-pointers-to-objects

stuck with the memory leak anyway This is called exception safety and it's a critical reason why deallocation needs to be done..

How to use enums as flags in C++?

http://stackoverflow.com/questions/1448396/how-to-use-enums-as-flags-in-c

. However I'd like to have some mechanism to enforce type safety so someone can't write seahawk.flags HasMaximizeButton . c..

Is Meyers implementation of Singleton pattern thread safe?

http://stackoverflow.com/questions/1661529/is-meyers-implementation-of-singleton-pattern-thread-safe

Which Typesafe Enum in C++ Are You Using?

http://stackoverflow.com/questions/217549/which-typesafe-enum-in-c-are-you-using

enum values. c design patterns enums enumeration type safety share improve this question I'm currently playing around..

What uses are there for “placement new”?

http://stackoverflow.com/questions/222557/what-uses-are-there-for-placement-new

garbage collector or simply when performance and exception safety are paramount there's no danger of allocation failure since..

Template typedefs - What's your work around?

http://stackoverflow.com/questions/26151/template-typedefs-whats-your-work-around

or Macros Do you feel its worth it c templates type safety share improve this question What do you like to use as work..

What is move semantics?

http://stackoverflow.com/questions/3106110/what-is-move-semantics

back because it's an awesome C idiom related to exception safety. string operator string that std swap data that.data return..

What techniques can be used to speed up C++ compilation times?

http://stackoverflow.com/questions/373142/what-techniques-can-be-used-to-speed-up-c-compilation-times

does it speed up compilation it also increases exception safety when combined with a non throwing swap function. The pimpl idiom..

What is The Rule of Three?

http://stackoverflow.com/questions/4172722/what-is-the-rule-of-three

name and that.name contain the same pointer. Exception safety Unfortunately this solution will fail if new char ... throws.. swap idiom but I will not go into the details of exception safety here. I only mentioned exceptions to make the following point..

What C++ Smart Pointer Implementations are available?

http://stackoverflow.com/questions/5026197/what-c-smart-pointer-implementations-are-available

furthermore you'd have to implement your own thread safety. On the plus side this probably gives you the most custom way.. boost intrusive_ptr although it has some built in thread safety but it does require you to include reference counting methods..

Is cout synchronized/thread-safe?

http://stackoverflow.com/questions/6374264/is-cout-synchronized-thread-safe

about it. When you have no guarantees about the thread safety of something you should treat it as not thread safe. Of particular..

Subclass/inherit standard containers?

http://stackoverflow.com/questions/6806173/subclass-inherit-standard-containers

a variety of functions that need that distinction for type safety. In those cases use abstract bases until the leaf classes which..

Is local static variable initialization thread-safe in C++11?

http://stackoverflow.com/questions/8102125/is-local-static-variable-initialization-thread-safe-in-c11

2011 and clang 3.0 are they properly implemented c thread safety c 11 share improve this question The relevant section 6.7..

Is it ever not safe to throw an exception in a constructor?

http://stackoverflow.com/questions/1197566/is-it-ever-not-safe-to-throw-an-exception-in-a-constructor

allocating resizing and freeing pointers. Cleanliness and Safety Edit I forgot to mention. You asked this I think I want to put..

Efficiency of C-String vs C++Strings

http://stackoverflow.com/questions/12124263/efficiency-of-c-string-vs-cstrings

to use library strings rather then C style strings Safety is understood. Why is C strings library more efficient After..

Using shared_ptr in dll-interfaces

http://stackoverflow.com/questions/1605640/using-shared-ptr-in-dll-interfaces

can be major drawback for your library. You have to choose Safety vs. larger audience But there's a possible loophole Use shared_ptr..

What is the order of evaluation of statements in a if bracket if(…)? [duplicate]

http://stackoverflow.com/questions/18450585/what-is-the-order-of-evaluation-of-statements-in-a-if-bracket-if

mandated in C C And evaluation order 6 answers Safety concerns about short circuit evaluation duplicate 4 answers..

C++ volatile required when spinning on boost::shared_ptr operator bool()? [duplicate]

http://stackoverflow.com/questions/4662482/c-volatile-required-when-spinning-on-boostshared-ptr-operator-bool

of these behaviors in a section probably titled Thread Safety. If it does allow them take a second look at whether your performance..

Overloading on R-value references and code duplication

http://stackoverflow.com/questions/6006527/overloading-on-r-value-references-and-code-duplication

the third argument refers to the kind of type that vec is. Safety issues. Consider code like this vec a .... vec b .... vec c..

Safety of casting between pointers of two identical classes?

http://stackoverflow.com/questions/7762929/safety-of-casting-between-pointers-of-two-identical-classes

of casting between pointers of two identical classes Let's..

G++ 4.6 -std=gnu++0x: Static Local Variable Constructor Call Timing and Thread Safety

http://stackoverflow.com/questions/9533649/g-4-6-std-gnu0x-static-local-variable-constructor-call-timing-and-thread-s

Static Local Variable Constructor Call Timing and Thread Safety void a ... void b ... struct X X b void f a static X x .....