CppModuleX.class_suite

Suites for C++ definitions for a class. Useful for implementiong ctor, dtor and member methods for a class.

mixin template CppModuleX(T)
@safe
class_suite
(
string class_name
,
string headline
)

Parameters

class_name
Type: string

name of the class.

headline
Type: string

whatever to append after class_name.

Examples

class_suite("Simple", "Simple()");

Generated code:

Simple::Simple() {
}

Meta