Loading...
Searching...
No Matches
convertible.h
Go to the documentation of this file.
1#ifndef _BBM_CONVERTIBLE_CONCEPT_H_
2#define _BBM_CONVERTIBLE_CONCEPT_H_
3
4namespace 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_ */
convertible concept
Definition: convertible.h:15
Definition: aggregatebsdf.h:29