Ask a Question

 

Start Coding Today

   

GeeksQuiz

GeeksforGeeksIDE

Data Structures

Algorithms

Interview Experiences

C Programming

C++ Programming

Java Programming

GATE CS

Books

What is this on cpp reference?

I was seeing this sort function on cpp reference.

default (1)	
template <class RandomAccessIterator>
  void sort (RandomAccessIterator first, RandomAccessIterator last);
custom (2)	
template <class RandomAccessIterator, class Compare>
  void sort (RandomAccessIterator first, RandomAccessIterator last, Compare comp);

What is that 

template <class RandomAccessIterator>?

Similarly 

template <class RandomAccessIterator, class Compare>?

Please help.Thank you.

asked Jan 27 by anonymous

Please log in or register to answer this question.

...