explicit vector ( size_type n, const T& value= T(), const Allocator& = Allocator() );
Repetitive sequence constructor: Initializes the vector with its content set to a repetition, n times, of copies of value.
One temporary constructed and bound to value. 5 copies constructed in the vector.
http://en.cppreference.com/w/cpp/container/vector/vector explicit vector( size_type count ); //C++11
constructs the container with count value-initialized (default constructed, for classes) instances of T. No copies are made.
explicit vector ( size_type n, const T& value= T(), const Allocator& = Allocator() );
Repetitive sequence constructor: Initializes the vector with its content set to a repetition, n times, of copies of value.
the output of rhel linux is correct construct one object and made 5 copies.