LLVM SmallVector (ADT/SmallVector.h)

swift · stdlib/include/llvm/ADT/SmallVector.h · c · Apache-2.0
dev-tools, infra, lang:cpp, tag:llvm, tag:vector, tag:data-structure

Header-only LLVM container providing a vector with inline small-size storage to avoid heap allocation for small element counts; reuse when needing efficient dynamic arrays in compiler/runtime C++ code.

// Source: https://github.com/swiftlang/swift | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
//===- llvm/ADT/SmallVector.h - 'Normally small' vectors --------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file defines the SmallVector class.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_ADT_SMALLVECTOR_H
#define LLVM_ADT_SMALLVECTOR_H

#include "llvm/ADT/iterator_ran

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key