Would you use std::string_view and std::unique_ptr more if they had short names?

2022.01.25 08:37 operamint Would you use std::string_view and std::unique_ptr more if they had short names?

I ask because it seems that few wants to alias standard types, and they are quite intrusive in the code when used a lot.

namespace std { // just to demo if they were short... using str = string_view; template > using box = unique_ptr; template  inline box make_box(const T& value = T()) { return make_unique(value); } } #define let const auto #define mut auto using namespace std::literals; using StrVec = std::vector; void add(std::str name, std::str email, std::box* boxp) { mut &vec = **boxp; std::string s{name}; s += ", "; s += email; vec.push_back(s); } int main() { let name = "John Johnson"sv; let email = "jojo@mymail.com"sv; mut box = std::make_box(); add(name, email, &box); } 
submitted by operamint to cpp [link] [comments]

2022.01.25 08:37 ta-diego Yfyychucvopvojv

submitted by ta-diego to ShadowBan [link] [comments]

2022.01.25 08:37 thorlek How to cacluate the probability of rolling a certain number or higher on X dice when rolling X or more dice

So basically in a board game Im making I want to have instructions that look like this.... Roll 2x3+ on 4D6 to pass. meaning they need to roll 4 normal dice, and get at least 2 of the dices showing 3 on higher. I want to know how to calculate the proability of any of the possible options, so i can make a spreadsheet to see the range/spread of options. I'm pretty sure I know how to do it if its like Roll 2x4+ on 2D6... but when there are extra dice (ie 2x4+ on 4D6) i dont understand the maths behind how that is mucher easier to do because you have the extra dice. Thanks!
submitted by thorlek to askmath [link] [comments]

2022.01.25 08:37 Qtchillito Bad dream

On day 8 of stims and I just went to an appointment and they told me I had to do 10 more days of stims...except it was a dream!
At least I am up now and will make it to the real monitoring appointment despite the rain. Fingers crossed my dreams aren't prophetic.
submitted by Qtchillito to IVF [link] [comments]

2022.01.25 08:37 KolozegOrg No Threat Of Immediate Russian Attack On Ukraine – EU

No Threat Of Immediate Russian Attack On Ukraine – EU submitted by KolozegOrg to SovereignInfoNetwork [link] [comments]

2022.01.25 08:37 The-Elder-King I thought this little c*nt would take me 10m to evolve, instead, it took me 2 hours… What was for you the Pokémon that took the longest to get?

I thought this little c*nt would take me 10m to evolve, instead, it took me 2 hours… What was for you the Pokémon that took the longest to get? submitted by The-Elder-King to PokemonSwordAndShield [link] [comments]

2022.01.25 08:37 Zcat2973 Alpha Network

Hello, I am here to promote a bedrock realm called Alpha Kitpvp. They also have a factions that is going to release on the 7th of February. The Kitpvp realm code is UqZRB5DpbXQ, and here's the discord![Alpha Network Discord ](https://discord.gg/GEDu4eq3fK)
submitted by Zcat2973 to MCBedrock [link] [comments]

2022.01.25 08:37 Level420Jesus hedgies r fukt

hedgies r fukt submitted by Level420Jesus to Superstonk [link] [comments]

2022.01.25 08:37 organgrinderpart2 Tickets for Ladbrokes Masters in Milton Keynes.

I have a table of 6 for sale for the Ladbrokes Masters in Milton Keynes this Saturday (29th Jan). Afternoon slot (doors at 11:45am). £200.00 face value.
Please DM me if you’re interested.
submitted by organgrinderpart2 to Darts [link] [comments]

2022.01.25 08:37 SushiixD OTK control warrior is satisfying.

OTK control warrior is satisfying. submitted by SushiixD to hearthstone [link] [comments]

2022.01.25 08:37 Name_in_progress___ what the voice (DUNE) in IMAX is like

submitted by Name_in_progress___ to dunememes [link] [comments]

2022.01.25 08:37 Agitated-Heat-1252 having to see this every day

having to see this every day submitted by Agitated-Heat-1252 to onejob [link] [comments]

2022.01.25 08:37 exporius Why did you leave again

Dear Isa ,
After 6 months of no contact, finally we reconnect over discord
All seemed to be going just fine between us despite everything that’s happened
I asked if you wanted to see a photo of me showing off my brand new glasses frames (when you haven’t seen my face in over 7 months)
Your final reply “sure”
I sent the photo.
And I get no response for a full day and then the next day I was just going to send a laughing emote or something and when I sent it,
you blocked me
Discord’s sugar-coated way of saying you were cut off from someone completely.
I couldn’t believe it was happening again, for no reason, it was going so well, I thought we were back to being besties
You said that “so yes, I want to try being friends with you again, if you’ll have me”
Which touched my heart and made me happier than I’ve been in a while
To toss it all away after 10 days…. Why…? How could you do this to me again?
Nothing feels the same without you, you’re the only person I vibe with on the most similar of ways , we are incredibly alike and I can’t lose you again
Because we’re soulmates, and you know it too, you know there’s something about me that’s like no one else you know
So why do you keep pushing me away, Isa?
I need you in my life, we need eachother, I’ll help you
I hope you’re doing alright though, I don’t know how much you might be struggling with everything these past two weeks of being blocked
Please be okay. Please be okay. I wish only the best for you
submitted by exporius to UnsentLetters [link] [comments]

2022.01.25 08:37 patchwork999 Ai Costa!

Ai Costa! submitted by patchwork999 to PORTUGALCARALHO [link] [comments]

2022.01.25 08:37 wewewawa The World'€™s Troubling New Tempo of Extreme Heat

The World'€™s Troubling New Tempo of Extreme Heat submitted by wewewawa to environment [link] [comments]

2022.01.25 08:37 TrainingAd4233 third inspiration, yes or no?

There have been some debates regarding the third inspiration for the commanders,someone was in favor, but not. I am in favor of the third inspiration because there are so many commanders and with the upcoming Azur lane event, there will be more commanders.
I would like to know for those who are not in favor of the third inspiration through a few questions:
-Don't want the third inspiration for balancing?
-Is it still too early to add the third inspiration, or is it not necessary?
submitted by TrainingAd4233 to WoWs_Legends [link] [comments]

2022.01.25 08:37 1Entropycat New fragrance

New fragrance submitted by 1Entropycat to gorgc [link] [comments]

2022.01.25 08:37 Spirited_Wallaby_653 How do you feel about your parents?

My mom got pregnant at 16. The boyfriend was rude to her and tossed the baby in the snow when he was crying. 2 yrs later he got her pregnant again on purpose and divorced her and told her noone will want her with 2 kids at 18.
She studied while my grandparents (may they rest in peace) looked after the two kids. My mom met my dad years later and I was born.
I don't know if this is the reason but my mom acts strange and as if she has not lived and tried to fill in the gaps.
She is 56 years old and constantly browses Facebook and finds online friends.
She think she doesn't sleep at night because the world is about to change and we will al depart to a planet where only the normal ones will be approved to be.
And stuff like that.
She barely talk to me.
She only cares about politics and even spread rumors that Lady Gaga eats children blood or Putin is a surrogate and the real Putin is dead...
I judt can't process all of that...
We lived happily but very miserable and often had nothing to eat. I never had new or fancy clothes. My classmates would make so much fun of me and I grew up insecure and shy.
submitted by Spirited_Wallaby_653 to Advice [link] [comments]

2022.01.25 08:37 Fast-Researcher-2507 Someone HELp me

submitted by Fast-Researcher-2507 to helpmecope [link] [comments]

2022.01.25 08:37 kiranJshah The Pleasure Pit - 1996

submitted by kiranJshah to nepalref [link] [comments]

2022.01.25 08:37 Rei_em_Amarelo Alguém sabe o nome dessa série que passava no SBT?

Um título auto explicativo.
Na primeira década dos 2000 passava uma série aos sábados (acho) no SBT.
Era sobre um colono/conquistador (não lembro direito) que veio pros EUA e acabou se tornando imortal, e ele seria imortal até achar o amor verdadeiro.
Na série tinha um monte de atores mais velhos que o protagonista que eram os filhos de outros relacionamentos que ele teve.
Se não me engano, ele trabalhava na polícia, e a trama era, basicamente, ele descobrindo que uma colega de trabalho dele (acho) era o verdadeiro amor dele.
Tentei encontrar essa série no google, mas, bem... Pessoas imortais tentando encontrar o amor é um tema meio recorrente.
submitted by Rei_em_Amarelo to brasil [link] [comments]

2022.01.25 08:37 Kip_Kill kanye discography combined into one album idea

kanye discography combined into one album idea submitted by Kip_Kill to Kanye [link] [comments]

2022.01.25 08:37 Blazyboi420 Sorry for the poor text editing

Sorry for the poor text editing submitted by Blazyboi420 to KingdomHearts [link] [comments]

2022.01.25 08:37 ComradeBraixen2nd What do yall think of this random drawing?

What do yall think of this random drawing? submitted by ComradeBraixen2nd to teenagers [link] [comments]

2022.01.25 08:37 nickyBoyDang Priscila Neves

Priscila Neves submitted by nickyBoyDang to blogueirinhasgostosas [link] [comments]