A cross-platform C++ module-only library with many useful features. Just drag and drop! It's that easy.
- Make sure you set your compiler's language standard to C++20/C++23 or higher.
- Clone the repository anywhere inside your project, for example, in a directory named
dependencies
.
MyProject\dependencies> git clone https://github.com/Beyondo/null
- Enjoy using modules in C++!
For Visual Studio:
- Make sure to click on "Show All Files" icon then click on refresh icon.
- Right click on
dependencies
ordependencies/null
directory and click "Include In Project".
- In filter view mode, create a filter named anything, let's say X.
- Download the library anywhere then just drag and drop it inside X.
null.filterable
null.clipboard
null.window
null.math
null.meta
null.vulkan
(requires linking tovulkan-1
and defining the preprocessorNULL_USE_VULKAN
)null.graphics
(requires linking to your chosen graphics APIs and defining preprocessors for each of them)
import null.clipboard;
using namespace null;
int main()
{
clipboard::set_text("Hello World!");
return 0;
}
- All library modules are prefixed by
null.[module_name]
. - All library modules are in the namespace
null::
. - This library was coded so that Intellisense would always work fine with it.
If you found this library useful, or at least a good helpful example of how next-gen libraries of C++23 modules should be like, then pleaes consider starring it!