Skip to content

Instantly share code, notes, and snippets.

@bohdantrotsenko
Created May 15, 2018 12:13
Show Gist options
  • Save bohdantrotsenko/06854972f30444506f437f1be760bf77 to your computer and use it in GitHub Desktop.
Save bohdantrotsenko/06854972f30444506f437f1be760bf77 to your computer and use it in GitHub Desktop.
definition of sort() in #include <algorithm>
template <class _RandomAccessIterator>
inline _LIBCPP_INLINE_VISIBILITY
void
sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
{
_VSTD::sort(__first, __last, __less<typename iterator_traits<_RandomAccessIterator>::value_type>());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment