Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <algorithm>
- using Data = std::vector<uint32_t>;
- auto min(const Data& _data) -> Data::value_type
- {
- return *std::min_element(_data.cbegin(), _data.cend());
- }
- auto main() -> int
- {
- Data data = { 2, 7, 3, 4 ,5 };
- std::cout << min(data) << "\n";
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement