First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
why aren't comparators passed as refs or c-refs in algorithms?
Hello if you take for example: template<class ForwardIterator, class Compare> ForwardIterator min_element(ForwardIterator first, ForwardIterator last, Compare comp); I am curious why hasn't been chosen to be passed as: template<class ForwardIterator, class Compare> ForwardIterator min_element(ForwardIterat... 29 Jul 2010 08:34
Is there any standard/guarantees for exception safety in STL operations?
Michael Kilburn wrote: On Jul 18, 3:29 pm, Daniel Kr�gler <daniel.krueg...(a)googlemail.com> wrote: I have checked C++ standard and did not find requirements imposed on library implementation with respect to exception safety. ... There exist some very general statements and guarantees, see be... 31 Jul 2010 10:42
Is there any standard/guarantees for exception safety in STL operations?
Michael Kilburn wrote: On Jul 18, 3:29 pm, Daniel Kr�gler <daniel.krueg...(a)googlemail.com> wrote: I have checked C++ standard and did not find requirements imposed on library implementation with respect to exception safety. ... There exist some very general statements and guarantees, see below.... 26 Jul 2010 18:15
Is there any standard/guarantees for exception safety in STL operations?
On Jul 18, 3:29 pm, Daniel Kr�gler <daniel.krueg...(a)googlemail.com> wrote: I have checked C++ standard and did not find requirements imposed on library implementation with respect to exception safety. ... There exist some very general statements and guarantees, see below. Yes, I saw them... the... 28 Jul 2010 02:02
Is there any standard/guarantees for exception safety in STL operations?
On 18 Jul., 05:24, Michael Kilburn <crusader.m...(a)gmail.com> wrote: Hi, I have checked C++ standard and did not find requirements imposed on library implementation with respect to exception safety. But this is as important of other parts of contract between library and client set in standard. E.g. if... 27 Jul 2010 17:15
What are requirements for allocator destructor?
In Dinkumware's reference, I found the following example: === For example, given an allocator object al of type A, you can allocate an object of type Other with the expression: A::rebind<Other>::other(al).allocate(1, (Other *)0) === I have written a pooled memory allocator that satisfies the std::allocator ... 19 Jul 2010 15:44
Is there any standard/guarantees for exception safety in STL operations?
Hi, I have checked C++ standard and did not find requirements imposed on library implementation with respect to exception safety. But this is as important of other parts of contract between library and client set in standard. E.g. if program relies on strong guarantee provided by some operation and another STL i... 29 Jul 2010 20:42
Is comparison of doubles stable?
Hi, This is somewhat tricky question: - we have two doubles d1 and d2 - and d1 < d2 Is it guaranteed (and where exactly in C++/IEEE 754 standards?) that this relationship will stay if I move d1 and/or d2 around in memory? I'll try to illustrate this in example: double foo() { ... } // this is a "generato... 21 Jul 2010 19:07
UTF-8 messages in exceptions ?
Hello I need to write some wrapper classes around a library that my client has, and the error messages (and all the other strings in the library) are in UTF-8. Can I somehow create an exception class derived from std::exception (std::runtime_error) that could carry such messages ? I mean the message returned s... 25 Jul 2010 19:26
anonymous namespace and C linkage
I require a function which must have a C linkage specification (it is a callback from a C library) to be a friend of a class in order to have access to protected member functions of the class: it forms part of the class implementation. Because it has to be a friend it must be declared in the class header file prov... 25 Jul 2010 09:43
First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17