Skip to content

Instantly share code, notes, and snippets.

@kaecy
Created December 4, 2013 23:27
Show Gist options
  • Save kaecy/7797477 to your computer and use it in GitHub Desktop.
Save kaecy/7797477 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <algorithm>
#include <array>
int main()
{
std::array<float, 5> numbers = {1.2, 3.4, 3.7, 2.8, 6.9};
std::cout << std::boolalpha;
std::cout << "ascending short: "
<< std::is_sorted(numbers.begin(), numbers.end())
<< std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment