Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to get an element in a list c++

#include <list>

auto it = yourList.begin();
std::advance(it, index);

std::cout << *it;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #element #list
ADD COMMENT
Topic
Name
4+6 =