Speaking generally, neither is “faster”. They do the same thing, in the same way.
Speaking even more generally, if you really want to know, measure it on your system.
Speaking as generally as I possibly can, try not to care about things like this.
More Related Contents:
- C++ Need help for a homework program that reads in a list of doubles from a file and add a string to each double
- C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming?
- What is move semantics?
- What can I do with a moved-from object?
- Why can in-class initializers only use = or {}? [duplicate]
- Unicode encoding for string literals in C++11
- C++’s most vexing parse again [duplicate]
- Flattening iterator
- What are the correct link options to use std::thread in GCC under linux?
- What new capabilities do user-defined literals add to C++?
- What can and can’t I specialize in the std namespace?
- constexpr overloading
- Alias template specialisation
- How does std::move() transfer values into RValues?
- What do compilers do with compile-time branching?
- std::bind a bound function
- What are declarations and declarators and how are their types interpreted by the standard?
- Which std::async implementations use thread pools?
- So why is i = ++i + 1 well-defined in C++11?
- C++ how to generate all the permutations of function overloads?
- What expressions yield a reference type when decltype is applied to them?
- How can I have multiple parameter packs in a variadic template?
- Why is the new random library better than std::rand()?
- Different ways of initializing an object in c++
- What is the purpose of the “final” keyword in C++11 for functions?
- How to make a variadic is_same?
- How do shared pointers work?
- C++11 random numbers
- Is there a standard way of moving a range into a vector?
- When can we omit the return type in a C++11 lambda?