7 #ifndef PXR_BASE_WORK_SORT_H
8 #define PXR_BASE_WORK_SORT_H
15 #include <tbb/parallel_sort.h>
28 tbb::parallel_sort(container->begin(), container->end());
30 std::sort(container->begin(), container->end());
38 template <
typename C,
typename Compare>
44 tbb::parallel_sort(container->begin(), container->end(), comp);
46 std::sort(container->begin(), container->end(), comp);
PUGI__FN void sort(I begin, I end, const Pred &pred)
WORK_API bool WorkHasConcurrency()
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
PXR_NAMESPACE_OPEN_SCOPE void WorkParallelSort(C *container)