Git Product home page Git Product logo

elseq's Introduction

Mediocre Template Library (aka. elseq)

Here's a nice picture to show how seriously I take my work. I put a lot of effort into it! Image

Looking for an alternative template library with superior performance and features? Look no further than here, because this is just mediocre! This is elseq, a mediocre template library. This will probably be nowhere near the gold standard C++ Standard Template Library in terms of the likes of performance, memory usage, and most noticeably, features. It's more of a learning expereince for me, especially since my OOP programming got rusty after working on my emulator for so long.

Implemented Structures:

  • Dynamic Array (partially done)
  • Singly and Doubly Linked Lists
  • Stack
  • Queue
  • Pair I don't know if I'll do all of these or not, as I really haven't done any planning. However, a Dynamic Array should be (by far) the most complex, so it shouldn't take me too long to get the others done if I implement a Dynamic Array in a reasonable amount of time.

Building on Linux

Clone into the repository: git clone https://github.com/Rift8844/elseq
Build the code cd elseq & make
Run the program ./elseqdemo

Building on Windows

Get a real operating system, loser

Usage

Make sure to #include "mtl.h"!

Dynamic Array

//Only blank initialization... for now!
mtl::DynamicArray<YourType> arr;
//Push onto dynamic array
arr.push(YourType());
//Pop off of dynamic array
YourType obj = arr.pop();

//Insert at index idx
int idx = 5;
arr.insert(obj, 5);
//Remove at index idx
obj = arr.remove(5);

//Get size
arr.getSize();
//You can access with .get() or operator[]
arr[0] = arr[1];
arr.get(0) = arr.get(1);

elseq's People

Contributors

rift8844 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.