Simple2012

Untitled

Oct 18th, 2013
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. int_sorted::int_sorted(const int *source, size_t size):sint_buffer(0){
  2.     if (!check_sorted(sint_buffer)){ // return if already sorted
  3.         int_buffer tmp(source, size);
  4.         for (int *i = tmp.begin(); i != tmp.end(); i++) // loop through int_buffer
  5.             insert(*i); // insert into to-be sorted buffer
  6.     }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment