Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何构建二维vector #43

Open
zzpp3377 opened this issue Mar 20, 2018 · 2 comments
Open

如何构建二维vector #43

zzpp3377 opened this issue Mar 20, 2018 · 2 comments

Comments

@zzpp3377
Copy link

zzpp3377 commented Mar 20, 2018

如何构建二维vector,为什么create_vector( vector_t )以及create_vector( vector_t * )都会返回NULL?

是需要先type_register一下吗?

@Kiddinglife
Copy link

1. create_vector( vector_t * )返回NULL
you need to reguster vector_t * .

2.create_vector( vector_t )返回NULL
you should use create_vector( vector_t <[your data type]>) .

@Kiddinglife
Copy link

Kiddinglife commented Mar 24, 2018

As the original author of libcstl seems not to maintain this project any more, I created a repos that borrows type-registration mechanism in libcstl and impl in eastl. Feel free to star https://github.com/Kiddinglife/zmdcstl/settings/remove_itr_type_and_only_use_container_type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants