GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
quicksort_index.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2004,2007,2012 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef INCLUDED_QUICKSORT_INDEX_H
12 #define INCLUDED_QUICKSORT_INDEX_H
13 
14 #include <vector>
15 
16 namespace gr {
17 namespace trellis {
18 
19 template <class T>
20 void SWAP(T& a, T& b);
21 
22 template <class T>
23 void quicksort_index(std::vector<T>& p, std::vector<int>& index, int left, int right);
24 
25 } /* namespace trellis */
26 } /* namespace gr */
27 
28 #endif /* INCLUDED_QUICKSORT_INDEX_H */
void quicksort_index(std::vector< T > &p, std::vector< int > &index, int left, int right)
void SWAP(T &a, T &b)
GNU Radio logging wrapper.
Definition: basic_block.h:29