mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Add manual doc on STL-compatible iterators
This commit is contained in:
4
doc/snippets/Tutorial_std_sort.cpp
Normal file
4
doc/snippets/Tutorial_std_sort.cpp
Normal file
@@ -0,0 +1,4 @@
|
||||
Array4i v = Array4i::Random().abs();
|
||||
cout << "Here is the initial vector v:\n" << v.transpose() << "\n";
|
||||
std::sort(v.begin(), v.end());
|
||||
cout << "Here is the sorted vector v:\n" << v.transpose() << "\n";
|
||||
Reference in New Issue
Block a user