Skip to content
/ DC4C Public

Standard data containers for C.

License

Notifications You must be signed in to change notification settings

mhahnFr/DC4C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to DC4C!

This repository contains a few data containers written in and for the C programming language.

The name stands for Data Containers for C.

Containers

All the implemented containers come with functions to simplify the interoperability with C++ code.

In order for the function overload resolutions to work when using this library in C++ code, make sure to include these headers before any extern "C" block.

Vector

A vector similar to the std::vector of the C++ standard library is available. It comes with a C++ wrapper, providing the usual constructors.

Additionally, the C++ wrapper comes with functions for the interoperability with C++'s std::vector.

Optional

An optional similar to the std::optional of the C++17 standard library is available.

Pair

A pair similar to the std::pair of the C++ standard library is available.

Final notes

This repository is licensed under the terms of the GPL 3.0.

© Copyright 2023 - 2024 mhahnFr