# Poco::Util

# namespace Units

## Overview

Namespaces: Internal

Classes: Value

Types: Unit

Functions: cube, operator *, operator /, raise, sqrt, square

## Namespaces

### namespace Internal

## Classes

### class Value

A Value with a unit.

## Types

### Unit

typedef Power < Internal::None, 0 > Unit;

Construct a unit equivalent to Unit1*Unit2 Constructs a unit equivalent to U*Num/Den Constructs a Unit equivalent to U+Num/Den Constructs a Unit equivalent to U^(Num/Den) A unit which is effectively no units at all.

## Functions

### cube

template < typename V, typename U > Value < V, Power < U, 3, 1 > > cube(
const Value < V, U > & a
);

### operator *

template < typename V, typename U > Value < V, U > operator * (
const V & a,
const Value < V, U > & b
);

### operator /

template < typename V, typename U > Value < V, Power < U, - 1 > > operator / (
const V & a,
const Value < V, U > & b
);

### raise

template < int Num, int Den, typename V, typename U > Value < V, Power < U, Num, Den > > raise(
const Value < V, U > & a
);

### sqrt

template < typename V, typename U > Value < V, Power < U, 1, 2 > > sqrt(
const Value < V, U > & a
);

### square

template < typename V, typename U > Value < V, Power < U, 2, 1 > > square(
const Value < V, U > & a
);