{"id":11819,"date":"2019-06-27T10:15:12","date_gmt":"2019-06-27T18:15:12","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/vsnews\/?p=11819"},"modified":"2019-06-27T10:15:12","modified_gmt":"2019-06-27T18:15:12","slug":"aa5g74p","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/vsnews\/akams-aa5g74p\/","title":{"rendered":"Simplify Your Code With Rocket Science: C++20\u2019s Spaceship Operator"},"content":{"rendered":"<p>C++20 adds a new operator, affectionately dubbed the \u201cspaceship\u201d operator: <code>&lt;=&gt;<\/code>. There was a <a href=\"https:\/\/blog.tartanllama.xyz\/spaceship-operator\/\">post<\/a> awhile back by our very own <a href=\"https:\/\/twitter.com\/TartanLlama\">Simon Brand<\/a> detailing some information regarding this new operator along with some conceptual information about what it is and does.\u00a0 The goal of this post is to explore some concrete applications of this strange new operator and its associated counterpart, the <code>operator==<\/code> (yes it has been changed, for the better!), all while providing some guidelines for its use in everyday code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C++20 adds a new operator, affectionately dubbed the \u201cspaceship\u201d operator: &lt;=&gt;. There was a post awhile back by our very own Simon Brand detailing some information regarding this new operator along with some conceptual information about what it is and does.\u00a0 The goal of this post is to explore some concrete applications of this strange [&hellip;]<\/p>\n","protected":false},"author":836,"featured_media":8227,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-11819","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allskus"],"acf":[],"blog_post_summary":"<p>C++20 adds a new operator, affectionately dubbed the \u201cspaceship\u201d operator: &lt;=&gt;. There was a post awhile back by our very own Simon Brand detailing some information regarding this new operator along with some conceptual information about what it is and does.\u00a0 The goal of this post is to explore some concrete applications of this strange [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/posts\/11819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/users\/836"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/comments?post=11819"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/posts\/11819\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/media\/8227"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/media?parent=11819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/categories?post=11819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/tags?post=11819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}