StackOverflow Questions for Tag: c%2B%2B23

Jupiter
Jupiter

Reputation: 1532

Can my getter return a `std::span<T*>` if my member is of type `std::vector<std::unique_ptr<T>>`?

Score: 1

Views: 61

Answers: 1

Read More
Ludovic Aubert
Ludovic Aubert

Reputation: 10544

replace range of projected struct fields

Score: 2

Views: 100

Answers: 1

Read More
bers
bers

Reputation: 5813

What do I have to do to make an enum class std::formattable?

Score: 2

Views: 112

Answers: 0

Read More
rubenvb
rubenvb

Reputation: 76775

How do you use std::views::zip (and friends) with the pipe syntax?

Score: 4

Views: 144

Answers: 1

Read More
zwhconst
zwhconst

Reputation: 1523

Cannot return a named rvalue reference in a function with return type of lvalue reference?

Score: 4

Views: 85

Answers: 1

Read More
user2138149
user2138149

Reputation: 17266

How to use socket recv in combination with std::vector without the cost of resize in C++23?

Score: -2

Views: 127

Answers: 2

Read More
user2138149
user2138149

Reputation: 17266

Is it possible to use std::chrono to create a datetime type which is not linked to a particular clock or implementation of a "now" function?

Score: 1

Views: 106

Answers: 1

Read More
xmllmx
xmllmx

Reputation: 42379

Why is `std::flat_set` not yet implemented while `std::flat_map` is already done in libc++20?

Score: 2

Views: 132

Answers: 0

Read More
user2138149
user2138149

Reputation: 17266

Why can't I take the address of some elements of a struct containing multiple elements?

Score: 2

Views: 116

Answers: 1

Read More
user2138149
user2138149

Reputation: 17266

Is subtracting two pointers to the same type meaningful if those pointers point to items in different arrays?

Score: -1

Views: 97

Answers: 3

Read More
user2138149
user2138149

Reputation: 17266

Why does this 3-byte struct have an `alignof` value of 1?

Score: 1

Views: 102

Answers: 1

Read More
Joseph Garvin
Joseph Garvin

Reputation: 21974

How to have a single parameter concept enforce presence of a templated method?

Score: 1

Views: 66

Answers: 0

Read More
user2138149
user2138149

Reputation: 17266

To obtain correctly aligned memory in the allocation of `std::vector<T>`, does it matter what the choice of `T` is?

Score: 1

Views: 90

Answers: 1

Read More
khteh
khteh

Reputation: 3976

c++ long double (128-bit) precision

Score: 1

Views: 85

Answers: 1

Read More
user2138149
user2138149

Reputation: 17266

Should `alignof` be used when serializing data to a buffer in C++?

Score: 1

Views: 102

Answers: 1

Read More
user2138149
user2138149

Reputation: 17266

How to use Docker to build a C++ application?

Score: -1

Views: 90

Answers: 1

Read More
Rud48
Rud48

Reputation: 1059

How to use global functions inside a module without using a header file

Score: 2

Views: 207

Answers: 1

Read More
user2138149
user2138149

Reputation: 17266

What is pointer alignment in C++ and why is it significant in the context of creating undefined behaviour?

Score: 1

Views: 131

Answers: 1

Read More
user2138149
user2138149

Reputation: 17266

How to flush a stream in C++23 when using std::print or std::println?

Score: 0

Views: 110

Answers: 2

Read More
NoSenseEtAl
NoSenseEtAl

Reputation: 30128

Why I can not construct mdspan from 2D C array?

Score: 1

Views: 62

Answers: 1

Read More
PreviousPage 2Next