Git Product home page Git Product logo

c-stl's Introduction

C-STL

C의 매크로 함수를 응용하여 C++의 STL(Standard Template Library)을 흉내낸 라이브러리입니다.

레퍼런스 -> [[https://github.com/myyrakle/C-STL/wiki]]

C++의 std::array에 해당하는 매크로는 decl_array입니다.
아래와 같이 선언하면 int 타입에 길이가 10인 배열 타입이 int_array라는 이름으로 구체화됩니다.
decl_array(int_array, int, 10);

그리고 객체의 생성은 아래와 같이 합니다. 꼭 make를 쓰지 않아도 되지만 권장하지 않습니다.
int_array arr = make_int_array();

매크로의 목록과 현황은 아래와 같습니다.
decl_array : 컴파일타임 정적 배열. 구현 완료
decl_darray : 런타임 고정배열. 미구현
decl_vector : 런타임 가변배열. 구현중
decl_list : 연결리스트. 미구현
decl_treeset : 트리셋. 미구현
decl_treemap : 트리맵. 미구현
decl_hashset : 해시셋. 미구현
decl_hashmap : 해시맵. 미구현
decl_stack : 스택. 구현 완료
decl_queue : 큐. 구현 완료
decl_maxheap : 최대 힙. 미구현
decl_minheap : 최소 힙. 미구현

c-stl's People

Contributors

myyrakle avatar sean9892 avatar bedrock17 avatar

Watchers

 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.