trsl logo
Classes | Namespaces | Macros | Functions
common.hpp File Reference
#include <cstdlib>
#include <algorithm>

Go to the source code of this file.

Classes

class  trsl::detail::identity< T >
 

Namespaces

 trsl
 Public namespace.
 
 trsl::detail
 Implementation details.
 
 trsl::rand_gen
 Random number wrapper functions.
 

Macros

#define TRSL_VERSION   "0.2.2"
 Code version string. More...
 
#define TRSL_VERSION_NR   100020200
 Code version number. More...
 

Functions

template<typename RandomAccessIterator , typename RandomNumberGenerator >
void trsl::detail::partial_random_shuffle (RandomAccessIterator first, RandomAccessIterator middle, RandomAccessIterator last, RandomNumberGenerator &rg)
 
unsigned int trsl::rand_gen::uniform_int (unsigned int n)
 Returns an integer in [0,n[. Used internally.
 
template<typename Real >
Real trsl::rand_gen::uniform_01 ()
 Returns a float in [0,1[. Used internally.
 

Macro Definition Documentation

◆ TRSL_VERSION

#define TRSL_VERSION   "0.2.2"

Code version string.

Defined as major.minor.bugfix.

Definition at line 19 of file common.hpp.

◆ TRSL_VERSION_NR

#define TRSL_VERSION_NR   100020200

Code version number.

Defined as 1MMmmbbii, where MM is the major release number, mm is the minor release number, bb is the bug-fix release number, and ii is the internal release number.

Definition at line 27 of file common.hpp.

© Copyright 2007-2011 Renaud Detry.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt.)
Revised Wed Jan 8 2020 14:43:31.