Follow this link to skip to the main content

claraty::cl_round< D, N > Struct Template Reference

#include <functor.h>

Inheritance diagram for claraty::cl_round< D, N >:

Inheritance graph
[legend]
Collaboration diagram for claraty::cl_round< D, N >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef D argument_type
typedef N result_type

Public Member Functions

operator() (const D &rhs) const

Detailed Description

template<class D, class N>
struct claraty::cl_round< D, N >

Definition at line 170 of file functor.h.


Member Typedef Documentation

typedef D claraty::cl_unary_function< D , N >::argument_type [inherited]

Definition at line 55 of file functor.h.

typedef N claraty::cl_unary_function< D , N >::result_type [inherited]

Definition at line 56 of file functor.h.


Member Function Documentation

template<class D, class N>
N claraty::cl_round< D, N >::operator() ( const D &  rhs  )  const [inline]

Definition at line 172 of file functor.h.

00172 { return static_cast<N>(rint(rhs)); }


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