GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing cpppatterns.com — Return multiple values - C++ Patterns
← Patterns
Return multiple values
This pattern is licensed under the CC0 Public Domain Dedication. IntentReturn multiple values of different types from a function. DescriptionThe On line 10, we call this function and store the result. We then get
the first of the returned values with Alternatively, on line 13 we use a structured binding declaration to declare and initialize variables with the returned values. The types of these variables are deduced automatically. If the values are closely and logically related, consider composing
them into a Share | ||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |