CGAL 5.1 - STL Extensions for CGAL
CGAL::Creator_1< Arg, Result > Class Template Reference

#include <CGAL/function_objects.h>

Definition

template<typename Arg, typename Result>
class CGAL::Creator_1< Arg, Result >

The class Creator_1 defines types and operations for creating objects from one argument.

Template Parameters
Argmust be convertible to Result.

Requirements

typedef Arg argument_type
 type of argument. More...
 
typedef Result result_type
 type of object to create. More...
 
result_type operator() (argument_type a) const
 returns result_type(a). More...
 

Member Typedef Documentation

◆ argument_type

template<typename Arg , typename Result >
typedef Arg CGAL::Creator_1< Arg, Result >::argument_type

type of argument.

◆ result_type

template<typename Arg , typename Result >
typedef Result CGAL::Creator_1< Arg, Result >::result_type

type of object to create.

Member Function Documentation

◆ operator()()

template<typename Arg , typename Result >
result_type CGAL::Creator_1< Arg, Result >::operator() ( argument_type  a) const

returns result_type(a).