Tour
About Us
Meta
Loading…
current community
Stack Exchange
chat
Meta Stack Exchange
your communities
Sign up
or
log in
to customize your list.
more stack exchange communities
company blog
Log in
Stack Exchange
All Sites
Top Users
Digests
geza
top
accounts
reputation
activity
subscriptions
Top Questions
90
votes
Is this floating-point optimization allowed?
c++
floating-point
clang
asked Jul 12, 2019 at 9:15
stackoverflow.com
83
votes
Is it allowed for a compiler to optimize away a local volatile variable?
c++
language-lawyer
c++17
volatile
asked Jul 23, 2018 at 6:01
stackoverflow.com
73
votes
std::tuple sizeof, is it a missed optimization?
c++
tuples
language-lawyer
padding
asked Sep 3, 2019 at 12:34
stackoverflow.com
55
votes
Is std::memcpy between different trivially copyable types undefined behavior?
c++
language-lawyer
c++17
undefined-behavior
strict-aliasing
asked Jul 12, 2018 at 8:22
stackoverflow.com
54
votes
Is it possible to get a pointer to one subobject via a pointer to a different, unreleated subobject?
c++
pointers
language-lawyer
c++17
offsetof
asked Sep 17, 2019 at 17:06
stackoverflow.com
47
votes
Floating point equality
c++
floating-point
language-lawyer
precision
floating-point-comparison
asked Jul 2, 2018 at 10:26
stackoverflow.com
41
votes
How do I iterate equal values with the standard library?
c++
algorithm
c++17
c++-standard-library
iterator-range
asked Jul 2, 2019 at 20:38
stackoverflow.com
37
votes
Is delete allowed to modify its parameter?
c++
language-lawyer
c++1z
asked Jul 17, 2017 at 16:57
stackoverflow.com
32
votes
Why doesn't the standard consider a template constructor as a copy constructor?
c++
constructor
language-lawyer
copy-constructor
asked Apr 25, 2019 at 9:22
stackoverflow.com
28
votes
Is it a missed optimization, when a compile-time known reference takes space in a struct?
c++
struct
reference
initialization
language-lawyer
asked Sep 5, 2019 at 18:33
stackoverflow.com
1
2
3
4
5
…
9
next
Top Answers
78
Why are the outputs of printf and std::cout different?
stackoverflow.com
54
Can the compiler optimize from heap to stack allocation?
stackoverflow.com
45
How do I create a "spacer" in a C++ class memory structure?
stackoverflow.com
38
Are packed structs portable?
stackoverflow.com
33
Repeated integer division by a runtime constant value
stackoverflow.com
28
Should I avoid using goto here? If so, how?
stackoverflow.com
27
Why does an inline function have lower efficiency than an in-built function?
stackoverflow.com
26
Scalar `new T` vs array `new T[1]`
stackoverflow.com
25
Foreground service getting killed from Oreo
stackoverflow.com
19
Comparing two values in the form (a + sqrt(b)) as fast as possible?
stackoverflow.com
17
What are the accuracy & performance benefits of using Math.fma?
stackoverflow.com
17
How to improve logic to check whether 4 boolean values match some cases
stackoverflow.com
17
Why is there now a difference between "{static const char a[]={...}" and "{const char a[]={...}"?
stackoverflow.com
16
Why does const_cast remove constness for a pointer but not for a pointer to a const?
stackoverflow.com
14
Base91, how is it calculated?
stackoverflow.com
14
Pointer to unique_ptr - is this a loophole?
stackoverflow.com
13
Why is an integer array search loop slower in C++ than Java?
stackoverflow.com
13
Single quotes as separator in large number?
stackoverflow.com
12
Why is stack memory allocated when it is not used?
stackoverflow.com
12
Is it safe to link gcc 6, gcc 7, and gcc 8 objects?
stackoverflow.com
11
c++ fastest way to check if char is vowel or consonant
stackoverflow.com
11
Why is casting from char to std::byte potentially undefined behavior?
stackoverflow.com
10
default return value 1 in function with return type int?
stackoverflow.com
10
Are inline variables unique across boundaries?
stackoverflow.com
9
Can a reinterpret_cast change the object representation?
stackoverflow.com
8
Simple example where [[likely]] and [[unlikely]] affect program assembly?
stackoverflow.com
8
g++: optimization -march=haswell and newer changes numerical result
stackoverflow.com
8
Alignment of array with 0 elements
stackoverflow.com
7
Why return value optimization does not work when return ()
stackoverflow.com
7
Is there some meaningful statistical data to justify keeping signed integer arithmetic overflow undefined?
stackoverflow.com
1
2
3
next
Stack Exchange works best with JavaScript enabled