134 bool is_sorted_rows (
const T *data,
170 static const int MAX_MERGE_PENDING = 85;
174 static const int MIN_GALLOP = 7;
177 static const int MERGESTATE_TEMP_SIZE = 1024;
197 : m_min_gallop (), m_a (nullptr), m_ia (nullptr), m_alloced (0), m_n (0)
200 OCTAVE_DISABLE_COPY_MOVE (MergeState)
203 {
delete [] m_a;
delete [] m_ia; }
206 { m_min_gallop = MIN_GALLOP; m_n = 0; }
234 struct s_slice m_pending[MAX_MERGE_PENDING];
237 compare_fcn_type m_compare;
241 template <
typename Comp>
245 template <
typename Comp>
249 template <
typename Comp>
253 template <
typename Comp>
257 template <
typename Comp>
261 template <
typename Comp>
266 template <
typename Comp>
271 template <
typename Comp>
276 template <
typename Comp>
281 template <
typename Comp>
284 template <
typename Comp>
287 template <
typename Comp>
288 int merge_collapse (T *data, Comp comp);
290 template <
typename Comp>
293 template <
typename Comp>
294 int merge_force_collapse (T *data, Comp comp);
296 template <
typename Comp>
301 template <
typename Comp>
304 template <
typename Comp>
307 template <
typename Comp>
310 template <
typename Comp>
315 template <
typename Comp>
319 template <
typename Comp>
321 const T& value, Comp comp);
323 template <
typename Comp>
328 template <
typename Comp>
333 template <
typename Comp>