Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions
cube_vector.hpp File Reference
#include "inexor/shared/cube_hash.hpp"
#include "inexor/shared/cube_sort.hpp"
#include "inexor/shared/cube_tools.hpp"
#include "inexor/shared/cube_loops.hpp"
#include "inexor/shared/cube_types.hpp"
#include "inexor/network/legacy/buffer_types.hpp"
#include "inexor/util/random.hpp"
#include <algorithm>

Go to the source code of this file.

Classes

struct  vector< T, MINSIZE >
 Vector template. More...
 

Functions

template<class T >
static float heapscore (const T &n)
 Legacy vector implementation. More...
 

Function Documentation

template<class T >
static float heapscore ( const T &  n)
inlinestatic

Legacy vector implementation.

In new code std::vectors (or a similar optimized and tested library) is strongly advised to use over this one.

Referenced by vector< facebounds >::downheap(), and vector< facebounds >::upheap().