PPL  1.2
Parma_Polyhedra_Library::maybe_assign_struct< To, From > Struct Template Reference

#include <distances_inlines.hh>

Static Public Member Functions

static Result function (const To *&top, To &tmp, const From &from, Rounding_Dir dir)
 

Detailed Description

template<typename To, typename From>
struct Parma_Polyhedra_Library::maybe_assign_struct< To, From >

Definition at line 34 of file distances_inlines.hh.

Member Function Documentation

template<typename To , typename From >
static Result Parma_Polyhedra_Library::maybe_assign_struct< To, From >::function ( const To *&  top,
To &  tmp,
const From &  from,
Rounding_Dir  dir 
)
inlinestatic

Definition at line 36 of file distances_inlines.hh.

References Parma_Polyhedra_Library::assign_r().

Referenced by Parma_Polyhedra_Library::maybe_assign().

36  {
37  // When `To' and `From' are different types, we make the conversion
38  // and use `tmp'.
39  top = &tmp;
40  return assign_r(tmp, from, dir);
41  }
Enable_If< Is_Native_Or_Checked< To >::value &&Is_Special< From >::value, Result >::type assign_r(To &to, const From &, Rounding_Dir dir)

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