MySQL  8.0.24
Source Code Documentation
varlen_sort.h File Reference
#include <assert.h>
#include "template_utils.h"
#include <algorithm>
#include <memory>
#include <utility>

Go to the source code of this file.

Classes

struct  varlen_element
 A RandomAccessIterator that splits up a char/uchar array into fixed-length elements, so that they can be sorted using std::sort. More...
 
class  varlen_iterator
 
struct  std::iterator_traits< varlen_iterator >
 

Namespaces

 std
 

Functions

static void swap (const varlen_element &a, const varlen_element &b)
 
template<class T , class Compare >
void varlen_sort (T *first, T *last, size_t elem_size, Compare comp)
 

Function Documentation

◆ swap()

static void swap ( const varlen_element a,
const varlen_element b 
)
inlinestatic

◆ varlen_sort()

template<class T , class Compare >
void varlen_sort ( T *  first,
T *  last,
size_t  elem_size,
Compare  comp 
)
inline