stc/4.2

A modern, user friendly, generic, type-safe and fast C99 container library: String, Vector, Sorted and Unordered Map and Set, Deque, Forward List, Smart Pointers, Bitset and Random numbers.
Recipe info
2023-09-20

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
stc/4.2

Using stc

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
stc/4.2
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("stc/4.2")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): stc
  • CMake target name(s): stc::stc
  • pkg-config file name(s): stc.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(stc REQUIRED)
# ...
target_link_libraries(YOUR_TARGET stc::stc)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the stc homepage listed above:

#include "c11/print.h"
#include "stc/algo/coroutine.h"
#include "stc/algo/crange.h"
#include "stc/algo/csort.h"
#include "stc/algo/filter.h"
#include "stc/calgo.h"
#include "stc/carc.h"
#include "stc/cbits.h"
#include "stc/cbox.h"
#include "stc/ccommon.h"
#include "stc/cdeq.h"
#include "stc/clist.h"
#include "stc/cmap.h"
#include "stc/coption.h"
#include "stc/cpque.h"
#include "stc/cqueue.h"
#include "stc/crand.h"
#include "stc/crandom.h"
#include "stc/cregex.h"
#include "stc/cset.h"
#include "stc/csmap.h"
#include "stc/cspan.h"
#include "stc/csset.h"
#include "stc/cstack.h"
#include "stc/cstr.h"
#include "stc/csview.h"
#include "stc/cvec.h"
#include "stc/extend.h"
#include "stc/forward.h"
#include "stc/priv/altnames.h"
#include "stc/priv/raii.h"
#include "stc/priv/template.h"
#include "stc/priv/template2.h"
#include "stc/utf8.h"