Movatterモバイル変換


[0]ホーム

URL:


Sorry, we no longer support your browser
Please upgrade toMicrosoft Edge,Google Chrome, orFirefox. Learn more about ourbrowser support.
Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities includingStack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Loading…
Code Review

Questions tagged [template-meta-programming]

Ask Question

For code that uses templates to generate compile-time executed code. For ordinary use of templates, use the 'template' tag instead.

277 questions
Filter by
Sorted by
Tagged with
2votes
0answers
184views

This is my second iteration of implementingtry_lock_for/try_lock_until function templates in which I've cherry-picked a bunch ...
4votes
2answers
126views

I implemented a templatedvector_view class that holds a reference to anstd::vector and provides the following operations:...
6votes
1answer
237views

I'm writing a library of IO functions for my physics laboratory class. In the meanwhile, I'm hoping to learn more about generic programming and C++20 concepts.Some contextI usually came home from ...
2votes
1answer
113views
2votes
1answer
119views

Needed to do some Meta programming.I needed to check if a class has a specific member (one case a member variable second case a member type (two distinct use cases)).Since I am writing a library, I ...
Loki Astari's user avatar
4votes
2answers
510views

I recently had to work on some conversion of literal strings and wondered if that could be done at compile time using template meta programming. I couldn't find many examples online, so I started ...
adepierre's user avatar
7votes
2answers
259views

Prior NotificationThis follows a previous review of mine that addressed the core helper function namedmake_skippable.The composition implementation presented ...
3votes
2answers
182views

(Please note: the post about the compose implementation announced below is now available.)This is about decorating callables by making their argument and return value to be a ...
3votes
1answer
128views

Below is a piece of template code which allows for adding a Tag to structure or class types....
Sam Coutteau's user avatar
3votes
1answer
192views

I was mad C++ did not have support for printing containers. I also could not find a header only library for printing containers so I decided to make my own. My goals were: 1) practicing templates 2) ...
Doruk's user avatar
3votes
1answer
173views

I have a class template that stores anstd::optional<T>. A very reduced version of the class template looks like this:...
2votes
1answer
267views

I've tried to make a small template for the creation of distinct (incompatible) numerical types. For example both row and column indices are usually represented as the same underlying type. However it ...
Sam Coutteau's user avatar
4votes
1answer
1kviews

I needed to find a way to convert a bunch of enums to string for displaying in C++. The two main ways I found when searching was using dark magic macros or voodoo magic template metaprogramming.As I ...
adepierre's user avatar
4votes
0answers
68views

Sometimes I find I want to call a function passing each of a set of types as a template parameter, but without needing to construct an object of those types. I also may want to do this in multiple ...
4votes
2answers
254views

I want to do template metaprogramming to compute the conversion fromstd::variant<Ts...> to ...

153050per page
1
2345
19

Hot Network Questions

more hot questions
Newest template-meta-programming questions feed

[8]ページ先頭

©2009-2025 Movatter.jp