MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ sort_in_place()

template<ComputeData InputType = Kakshya::DataVariant, ComputeData OutputType = InputType>
output_type MayaFlux::Yantra::StandardSorter< InputType, OutputType >::sort_in_place ( const input_type &  input)
inlineprivate

In-place sorting (modifies input)

Definition at line 216 of file StandardSorter.hpp.

217 {
218 if constexpr (std::same_as<InputType, OutputType>) {
219 auto result = input;
220 sort_data_in_place(result);
221 return result;
222 } else {
223 return sort_copy(input);
224 }
225 }
Core::GlobalInputConfig input
Definition Config.cpp:42
output_type sort_copy(const input_type &input)
Copy-based sorting (preserves input)
void sort_data_in_place(input_type &data)
Sort data in-place.

References input, MayaFlux::Yantra::StandardSorter< InputType, OutputType >::sort_copy(), and MayaFlux::Yantra::StandardSorter< InputType, OutputType >::sort_data_in_place().

Referenced by MayaFlux::Yantra::StandardSorter< InputType, OutputType >::sort_implementation().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: