Skip to content
Jeongho Nam edited this page Jun 13, 2016 · 13 revisions

npm version Downloads

TypeScript-STL

Introduction

STL (Standard Template Library) Containers and Algorithms for TypeScript

TypeScript-STL is a TypeScript's Standard Template Library who is migrated from C++ STL. Most of classes and functions of STL are implemented. Just enjoy it.

Abstract Container

Containers
Global Functions

References

You can learn and explore about TypeScript-STL more deeply with such below:

Installation

Node

npm install -g typescript-stl

####### TypeScript

// SOMEWHERE PLACE NODE AND STL HEADERS EXIST
/// <reference path="node.d.ts" />
/// <reference path="typescript-stl.d.ts" />

global["std"] = require("typescript-stl");
let list: std.List<string> = new std.List<string>();
Pure JavaScript
var std = require("typescript-stl");
var list = new std.List();

Browser

In HTML Document
<script src="typescript-stl.js"></script>
TypeScript, reference definitions (header)
/// <reference path="typescript-stl.d.ts" />

Index of Guidance, Wiki.