c++ initialize a vector

C++
#include <bits/stdc++.h> 
using namespace std; 
  
int main() 
{ 
// This vector initializes with the values: 10, 20, and 30
  vector<int> vect{ 10, 20, 30 }; 

    return 0; 
} std::vector<type> name;
Source

Also in C++: