File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -794,18 +794,19 @@ The number '30' is in c1 collection 3 times.
794
794
Inserts an element constructed in place into the vector at a specified position.
795
795
796
796
``` cpp
797
+ template <class ... Types>
797
798
iterator emplace(
798
- const_iterator _Where ,
799
- Type&& val );
799
+ const_iterator position ,
800
+ Types&&... args );
800
801
```
801
802
802
803
### Parameters
803
804
804
- *_Where *\
805
+ *position *\
805
806
The position in the [vector](../standard-library/vector-class.md) where the first element is inserted.
806
807
807
- *val *\
808
- The value of the element being inserted into the `vector` .
808
+ *args *\
809
+ Constructor arguments. The function infers which constructor overload to invoke based on the arguments provided .
809
810
810
811
### Return Value
811
812
@@ -863,12 +864,12 @@ Adds an element constructed in place to the end of the vector.
863
864
864
865
``` cpp
865
866
template <class ... Types>
866
- void emplace_back(Types&&... _ Args );
867
+ void emplace_back(Types&&... args );
867
868
```
868
869
869
870
### Parameters
870
871
871
- *_Args *\
872
+ *args *\
872
873
Constructor arguments. The function infers which constructor overload to invoke based on the arguments provided.
873
874
874
875
### Example
You can’t perform that action at this time.
0 commit comments