Program Listing for File TableSize.h
↰ Return to documentation for file (ADS/dictionary/TableSize.h)
/*--------------------------------------------------------------------------*/
/*---------------------------- File TableSize.h ----------------------------*/
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
/*----------------------------- DEFINITIONS --------------------------------*/
/*--------------------------------------------------------------------------*/
#ifndef __ADS_TableSize
#define __ADS_TableSize
/* self-identification: #endif constant */
/*--------------------------------------------------------------------------*/
/*------------------------------ INCLUDES ----------------------------------*/
/*--------------------------------------------------------------------------*/
#include "ADS/Contract.h"
#include <algorithm>
#include <cstddef>
/*--------------------------------------------------------------------------*/
/*--------------------------- NAMESPACE ------------------------------------*/
/*--------------------------------------------------------------------------*/
namespace ADS {
/*--------------------------------------------------------------------------*/
/*-------------------------------- HELPERS ---------------------------------*/
/*--------------------------------------------------------------------------*/
bool is_prime( std::size_t n );
std::size_t next_prime( std::size_t n );
bool is_pow2( std::size_t n );
std::size_t resized( std::size_t m , bool grow , std::size_t m0 );
/*--------------------------------------------------------------------------*/
} // end( namespace ADS )
/*--------------------------------------------------------------------------*/
/*-------------------------- IMPLEMENTATION --------------------------------*/
/*--------------------------------------------------------------------------*/
#include "ADS/dictionary/impl/TableSize.tpp"
/*--------------------------------------------------------------------------*/
#endif /* TableSize.h included */
/*--------------------------------------------------------------------------*/
/*-------------------------- End File TableSize.h --------------------------*/
/*--------------------------------------------------------------------------*/