CppModuleX.class_suite

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

  1. auto class_suite(string class_name, string headline)
    mixintemplate CppModuleX(T)
    class_suite
    (
    string class_name
    ,
    string headline
    )
  2. auto class_suite(string rval, string class_name, string headline)

Parameters

class_name string

name of the class.

headline string

whatever to append after class_name.

Examples

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

Generated code:

Simple::Simple() {
}

Meta