Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.18 KB

vista.adoc

File metadata and controls

46 lines (32 loc) · 1.18 KB

Vista

Bjørn Reese

Introduction

Vista is a header-only C++11 library that contains various view classes.

The view classes acts like fixed-capacity in-place containers operating on contiguous memory provided by the user.

The view classes do not take ownership of the user-provided memory. User must ensure the life-time of the memory until the view has been destroyed.

Note
Precondition
using namespace vista;

View

Views operate on borrowed continguous memory. Some design decisions are common to all views.

  • Circular view is a circular queue operating on borrowed storage.

  • Map view is an associative array operating on borrowed storage.

  • Priority view is a priority queue operating on borrowed storage.

Fixed-Capacity Container

Algorithm