cheshirekow  v0.1.0
binary_literal.h File Reference

shamelessly borred from http://akrzemi1.wordpress.com/2012/10/23/user-defined-literals-part-ii/ More...

#include <limits>
#include <stdexcept>

Go to the source code of this file.

Namespaces

 mpblocks
 
 mpblocks::utility
 

Macros

#define BINARY_LITERAL(X)   mpblocks::utility::BinaryLiteral(#X)
 

Functions

template<typename OutputType = unsigned>
constexpr unsigned mpblocks::utility::_BinaryLiteral (const char *str, size_t val=0)
 
template<typename OutputType = unsigned>
constexpr OutputType mpblocks::utility::BinaryLiteral (const char *str, size_t val=0)
 
constexpr bool mpblocks::utility::IsBinary (char c)
 
template<typename T >
constexpr size_t mpblocks::utility::NumberOfBits ()
 
constexpr size_t mpblocks::utility::StringLength (const char *str, size_t current_len=0)
 

Detailed Description

shamelessly borred from http://akrzemi1.wordpress.com/2012/10/23/user-defined-literals-part-ii/

Date
Sep 14, 2013
Author
Josh Bialkowski (jbial.nosp@m.k@mi.nosp@m.t.edu)

Definition in file binary_literal.h.

Macro Definition Documentation

#define BINARY_LITERAL (   X)    mpblocks::utility::BinaryLiteral(#X)

Definition at line 79 of file binary_literal.h.