Libraries
Everything available in C++ Mode out of the box.
#include. They are all automatically available in every sketch through Processing.h.
Containers
std::vectorDynamic array. The most common container. Use instead of Java's ArrayList.
std::mapKey-value pairs sorted by key.
std::unordered_mapHash map. Faster lookups than std::map but unsorted.
std::setSorted collection of unique values.
std::unordered_setHash set. Faster lookups than std::set but unsorted.
std::listDoubly linked list. Fast insert and remove at any position.
std::dequeDouble-ended queue. Fast insert and remove at both ends.
std::queueFIFO queue adapter.
std::stackLIFO stack adapter.
Algorithms
std::sortSort any container. Works with lambdas for custom comparison.
std::findFind an element in a range.
std::remove_ifRemove elements matching a condition. Commonly used with vectors.
std::min / std::maxMin and max of two values.
std::accumulateSum or fold a range of values.
std::transformApply a function to every element in a range.
std::iteratorIterator utilities for working with ranges and containers.
Strings and IO
std::stringText string. Use instead of Java's String.
std::stringstreamBuild strings from mixed types.
std::ifstreamRead from files.
std::ofstreamWrite to files.
std::regexRegular expressions for pattern matching.
std::cout / std::cerrPrint to the console. Also available as println().
std::iomanipFormat output — set precision, width, fill characters.
Concurrency
std::threadRun code on a separate thread.
std::functionalFunction wrappers, std::function, std::bind, lambdas.
Utilities
std::optionalA value that may or may not be present.
std::variantA value that can be one of several types.
std::tupleA fixed-size collection of values of different types.
std::unique_ptr / std::shared_ptrSmart pointers for automatic memory management.
std::chronoTime utilities. Measure durations and get the current time.
std::cstdlib / std::ctimeC standard library utilities and time functions.
Math
std::cmathsin, cos, tan, sqrt, pow, abs, floor, ceil and more.
std::randomRandom number generation. Also available as random().
std::numericiota, accumulate, inner_product and more.