ACE_Utils::Noop_Truncator< FROM, TO > Struct Template Reference

No-op truncation. More...

#include <Truncate.h>

List of all members.

Public Member Functions

TO operator() (FROM val)


Detailed Description

template<typename FROM, typename TO>
struct ACE_Utils::Noop_Truncator< FROM, TO >

No-op truncation.

This structure/functor performs no truncation since it assumes that sizeof(FROM) < sizeof(TO), meaning that numeric_limits<FROM>::max() < numeric_limits<TO>::max().

Definition at line 479 of file Truncate.h.


Member Function Documentation

template<typename FROM, typename TO>
TO ACE_Utils::Noop_Truncator< FROM, TO >::operator() ( FROM  val  )  [inline]

Definition at line 481 of file Truncate.h.

00482     {
00483       return static_cast<TO> (val);
00484     }


The documentation for this struct was generated from the following file:
Generated on Tue Feb 2 17:36:07 2010 for ACE by  doxygen 1.4.7