Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

stl

What are the complexity guarantees of the standard containers?

by IT Nursery

Apparently 😉 the standard containers provide some form of guarantees. What type of guarantees and what exactly are the differences between the different … Read more

Tags big-o, c, containers, stl

C++ valarray vs. vector

by IT Nursery

I like vectors a lot. They’re nifty and fast. But I know this thing called a valarray exists. Why would I use a … Read more

Tags c, c++-standard-library, stdvector, stl, valarray

What does iterator->second mean?

by IT Nursery

In C++, what is the type of a std::map<>::iterator? We know that an object it of type std::map<A,B>::iterator has an overloaded operator -> … Read more

Tags c, iterator, stl

Why is a C++ Vector called a Vector?

by IT Nursery

The question’s pretty self-explanatory really. I know vaguely about vectors in maths, but I don’t really see the link to C++ vectors. 1Best … Read more

Tags c, stl, vector

Is the order of iterating through std::map known (and guaranteed by the standard)?

by IT Nursery

What I mean is – we know that the std::map‘s elements are sorted according to the keys. So, let’s say the keys are … Read more

Tags c, dictionary, standards, stl

Advantages of std::for_each over for loop

by IT Nursery

Are there any advantages of std::for_each over for loop? To me, std::for_each only seems to hinder the readability of code. Why do then … Read more

Tags c, coding-style, foreach, stl

How do I reverse a C++ vector?

by IT Nursery

Is there a built-in vector function in C++ to reverse a vector in place? Or do you just have to do it manually? … Read more

Tags c, std, stl, vector

Why does std::list::reverse have O(n) complexity?

by IT Nursery

Why does the reverse function for the std::list class in the C++ standard library have linear runtime? I would think that for doubly-linked … Read more

Tags c, c++11, linked-list, stl

maximum value of int

by IT Nursery

Is there any code to find the maximum value of integer (accordingly to the compiler) in C/C++ like Integer.MaxValue function in java? Best … Read more

Tags c, limits, numeric-limits, stl

STL or Qt containers?

by IT Nursery

What are the pros and cons of using Qt containers (QMap, QVector, etc.) over their STL equivalent? I can see one reason to … Read more

Tags c, qt, stl
Post navigation
Older posts
Page1 Page2 … Page6 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery