Loading...
Searching...
No Matches
include
concepts
convertible.h
Go to the documentation of this file.
1
#ifndef _BBM_CONVERTIBLE_CONCEPT_H_
2
#define _BBM_CONVERTIBLE_CONCEPT_H_
3
4
namespace
bbm
{
5
namespace
concepts {
6
7
/********************************************************************/
8
/*! \brief convertible concept
9
10
Check if convert(DST& dst, const SRC& src) exists. The goal of this
11
method is to copy and convert the data from 'src' to 'dst'. Essentially
12
an extra-class cast method.
13
*********************************************************************/
14
template
<
typename
DST,
typename
SRC>
15
concept
convertible
=
requires
(DST& dst,
const
SRC& src)
16
{
17
{ convert(dst, src) };
18
};
19
20
}
// end concepts namespace
21
}
// end bbm namespace
22
23
#endif
/* _BBM_CONVERTIBLE_CONCEPT_H_ */
bbm::concepts::convertible
convertible concept
Definition:
convertible.h:15
bbm
Definition:
aggregatebsdf.h:29