Explore >> Select a destination


You are here

gustedt.wordpress.com
| | quuxplusone.github.io
15.4 parsecs away

Travel
| | Someone on the cpplang Slack asks: How can I view a std::pair<T, T> as if it were a range of two Ts? That is, fill in the blank in this sample program: template<std::ranges::range R> void increment_all(R&& rg) { for (auto&& elt : rg) { elt = elt + 1; } } template<class T> auto F(std::pair<T, T>& kv) { ~~~~ } int main() { std::pair<int, int> kv = {1, 2}; increment_all(F(kv)); assert(kv.first == 2 && kv.second == 3); std::ranges::fill(F(kv), 4); assert(kv.first == 4 && kv.second == 4); }
| | migocpp.wordpress.com
15.6 parsecs away

Travel
| | The CUDA C/C++ platform allows different programming modes for invoking code on a GPU device. Probably the more familiar and definitely simpler way is writing a single .cu file which contains both the kernel function and the host wrapper with "<<< >>>" invocation syntax. The NVCC compiler would transparently embed compiled device code and all...
| | golangbot.com
13.2 parsecs away

Travel
| | A pointer is a variable that stores the memory address of another variable. This tutorial covers pointer declaration, dereferencing and various other topics with examples.
| | crpt.fyi
38.0 parsecs away

Travel
| Issues for organizations and discussions, repo for debriefs and resources - Call For Proposal · francep2p/community Wiki