Embedded Template Library  1.0
 All Classes Files Functions Variables Typedefs Friends Modules Pages
etl::log< N, BASE > Struct Template Reference

#include <log.h>

Public Types

enum  value_type { value = (N >= BASE) ? 1 + log<N / BASE, BASE>::value : 0 }
 

Detailed Description

template<const size_t N, const size_t BASE>
struct etl::log< N, BASE >

The base generic log template. Defines value as the log of the number at the specified base. The result is rounded down to the next integer.

Template Parameters
NThe number to find the log of.
BASEThe base of the log.

The documentation for this struct was generated from the following file: