¡@

Home 

c++ Programming Glossary: requires

What exactly is nullptr?

http://stackoverflow.com/questions/1282295/what-exactly-is-nullptr

conversion if possible or use static_cast . The Standard requires that sizeof nullptr_t be sizeof void . share improve this..

C state-machine design

http://stackoverflow.com/questions/1647631/c-state-machine-design

more shared than truly global . As with all globals it requires care. The transitions array then defines all possible transitions..

What is the difference between new/delete and malloc/free?

http://stackoverflow.com/questions/240212/what-is-the-difference-between-new-delete-and-malloc-free

Must specify the size required in bytes. Allocating array requires manual calculation of space. Reallocating larger chunk of memory..

How to use Boost in Visual Studio 2010

http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-studio-2010

on compiling in the various optional components which requires external libraries. If you are using headers only libraries.. boost that require building but none of the features that requires external dependencies then building it is fairly simple. Unarchive.. To completely built the 32 bits version of the library requires 32 bits Python and similarly for the 64 bits version. If you..

Why does C++ compilation take so long?

http://stackoverflow.com/questions/318398/why-does-c-compilation-take-so-long

Several reasons Header files Every single compilation unit requires hundreds or even thousands of headers to be 1 loaded and 2 compiled... of the header . This is probably the main reason as it requires huge amounts of code to be compiled for every compilation unit..

What is the copy-and-swap idiom?

http://stackoverflow.com/questions/3279543/what-is-the-copy-and-swap-idiom

While this may seem to be a valid concern and indeed it requires non trivial try catch clauses this is a non issue. That's because..

Can we increase the re-usability of this key-oriented access-protection pattern?

http://stackoverflow.com/questions/3324898/can-we-increase-the-re-usability-of-this-key-oriented-access-protection-pattern

still require a macro. this is because a friend function requires the entire declaration which is not just a type but a name as..

What is the bit size of long on 64-bit Windows?

http://stackoverflow.com/questions/384502/what-is-the-bit-size-of-long-on-64-bit-windows

of being different from what everyone else does and also requires code to be revised to exploit 64 bit capacities. There always..

Pretty-print C++ STL containers

http://stackoverflow.com/questions/4850473/pretty-print-c-stl-containers

delimiters are round brackets. The enable if type trait requires C 0x but with some modifications it should be possible to make..

Why should `new` be used as little as possible?

http://stackoverflow.com/questions/6500313/why-should-new-be-used-as-little-as-possible

memory in a sequential fashion. It can do so because it requires you to release the memory in the reverse order First In Last.. programming languages. It is very very fast because it requires minimal book keeping and the next address to allocate is implicit... there is unneeded dynamic memory allocation. The program requires more typing and introduces the risk of forgetting to deallocate..

Accessing class members on a NULL pointer

http://stackoverflow.com/questions/669742/accessing-class-members-on-a-null-pointer

app return 0 I know virtual method call crashes because it requires a vtable lookup and can work only with valid objects. I have..

Why does changing 0.1f to 0 slow down performance by 10x?

http://stackoverflow.com/questions/9314534/why-does-changing-0-1f-to-0-slow-down-performance-by-10x

is no longer 10x slower and actually becomes faster. This requires that the code be compiled with SSE enabled. This means that..

Why is reading lines from stdin much slower in C++ than Python?

http://stackoverflow.com/questions/9371238/why-is-reading-lines-from-stdin-much-slower-in-c-than-python

the latter can read lines of any length while the former requires limiting input to some finite number. In practice this is probably..

What XML parser should I use in C++?

http://stackoverflow.com/questions/9387610/what-xml-parser-should-i-use-in-c

of its speed is by refering to strings in place . This requires more memory management on your part you must keep that string.. with RapidXML is that it is painful for writing XML. It requires you to do a lot of explicit memory allocation of string names.. It does provide a kind of string buffer but that still requires a lot of explicit work on your end. It's certainly functional..

Does std::function's copy-constructor require the template type's argument types to be complete types?

http://stackoverflow.com/questions/10730682/does-stdfunctions-copy-constructor-require-the-template-types-argument-types

class F class A function allocator_arg_t const A a F f Requires F shall be CopyConstructible . f shall be Callable 20.8.11.2.. for argument types ArgTypes and return type R . ... Note Requires addresses the user of the functionality not the implementer...

fastest c++ file compression library available? [closed]

http://stackoverflow.com/questions/124239/fastest-c-file-compression-library-available

lzo from its website thanks Chris for correcting the link Requires no memory for decompression. Compression is pretty fast. Requires.. no memory for decompression. Compression is pretty fast. Requires 64 kB of memory for compression. Note that lzo works on memory..

Why is modifying a string through a retrieved pointer to its data not allowed?

http://stackoverflow.com/questions/14290795/why-is-modifying-a-string-through-a-retrieved-pointer-to-its-data-not-allowed

i for each i in 0 size . 2 Complexity constant time. 3 Requires The program shall not alter any of the values stored in the..

How to have template type deduced in std::function arguments with lambda?

http://stackoverflow.com/questions/14784441/how-to-have-template-type-deduced-in-stdfunction-arguments-with-lambda

a nice message on violation. template typename Functor Requires is_callable Functor long double ... R foo Functor functor Documents..

Is vector::insert allowed to reserve only once and avoid further capacity checks?

http://stackoverflow.com/questions/16616253/is-vectorinsert-allowed-to-reserve-only-once-and-avoid-further-capacity-checks

of insert sequence.reqmts 3 a.insert p i j ... Requires T shall be EmplaceConstructible into X from i. For vector if..

Virtual Methods or Function Pointers

http://stackoverflow.com/questions/1955074/virtual-methods-or-function-pointers

function can be changed after callback object is created Requires an indirect call. May be slower than functor method for callbacks.. No indirect call overhead and may be inlined completely. Requires an additional Functor class to be defined. Requires that callback.. Requires an additional Functor class to be defined. Requires that callback is statically declared at compile time. FWIW Function..

Edges on polygon outlines not always correct

http://stackoverflow.com/questions/3039026/edges-on-polygon-outlines-not-always-correct

algorithm opengl graphics share improve this question Requires Eigen as written but the core operations should map easily to..

Beyond Stack Sampling: C++ Profilers

http://stackoverflow.com/questions/4394606/beyond-stack-sampling-c-profilers

resolution. On the plus side produces solid results. GProf Requires GCC to be even moderately effective. VTune VTune's W7 support..

Pretty-print C++ STL containers

http://stackoverflow.com/questions/4850473/pretty-print-c-stl-containers

erasing helper class for easy use of custom delimiters. Requires TCharTraits std char_traits TChar and TChar char or wchar_t..

Standard library containers producing a lot of copies on rvalues in GCC

http://stackoverflow.com/questions/4865515/standard-library-containers-producing-a-lot-of-copies-on-rvalues-in-gcc

default This is specified in 23.3.5.1 vector.cons 4 Requires T shall be DefaultConstructible. The implementation is not allowed..

C++0x Error: overloading a function with std::shared_ptr to const argument is ambiguous

http://stackoverflow.com/questions/6322364/c0x-error-overloading-a-function-with-stdshared-ptr-to-const-argument-is-am

Y shared_ptr T shared_ptr const shared_ptr Y r noexcept Requires The second constructor shall not participate in the overload..

When should I use the new keyword in C++?

http://stackoverflow.com/questions/655065/when-should-i-use-the-new-keyword-in-c

free store This is frequently the same thing as the heap Requires you to explicitly delete your object later. If you don't delete..

Why does std::cout output disappear completely after NULL is sent to it

http://stackoverflow.com/questions/7019454/why-does-stdcout-output-disappear-completely-after-null-is-sent-to-it

operator basic_ostream char traits out const char s 3. Requires s is non null. Then streaming some_string is Undefined Behaviour..

Is string::c_str() no longer null terminated in C++11?

http://stackoverflow.com/questions/7554039/is-stringc-str-no-longer-null-terminated-in-c11

internally. Look at the definition of operator 21.4.5 Requires pos size . Returns begin pos if pos size otherwise a reference..

Is it legal to modify the result of std::string::op[]?

http://stackoverflow.com/questions/7766087/is-it-legal-to-modify-the-result-of-stdstringop

size_type pos const reference operator size_type pos 1 Requires pos size . 2 Returns begin pos if pos size otherwise a reference..

Does the default constructor of std::pair<> set basic types (int, etc) to zero?

http://stackoverflow.com/questions/9025792/does-the-default-constructor-of-stdpair-set-basic-types-int-etc-to-zero

Quoting the C 11 standard §20.3.2 2 3 constexpr pair 2 Requires is_default_constructible first_type value is true and is_default_constructible..