Phosphor
sorting_algorithm.cc File Reference

Functions

template<class T >
std::vector< T > merge (const std::vector< T > &&left, const std::vector< T > &&right)
 
template<class T >
std::vector< T > merge_sort (const std::vector< T > &input)
 
int main (int argc, char **argv)
 

Detailed Description

This file presents a sample implementation of merge sort that has been instrumented with two scoped traces in the merge<T> function and merge_sort<T>.