22 lines
299 B
C++
22 lines
299 B
C++
![]() |
// Global module fragment, where #includes can happen
|
||
|
module;
|
||
|
#include <iostream>
|
||
|
|
||
|
export module lib;
|
||
|
|
||
|
export class lib
|
||
|
{
|
||
|
public:
|
||
|
lib();
|
||
|
~lib();
|
||
|
void helloworld();
|
||
|
};
|
||
|
|
||
|
lib::lib() = default;
|
||
|
lib::~lib() = default;
|
||
|
|
||
|
void lib::helloworld()
|
||
|
{
|
||
|
std::cout << "Hello world!" << std::endl;
|
||
|
}
|