1.1

Posted lefthook

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了1.1相关的知识,希望对你有一定的参考价值。

Effective C++ Scott Meyers

Chapter 7. Templates and Generic Programming

1. Item 41: Undetstand Implicit interfaces and compile-time polymorphism

  Both classes and templates support interfaces and polymorphism.

  For classes, interfaces are explicit and centered on function signatures. Polymorphism occures at runtime through virtual functions.

  For template parameters, interfaces are implicit and based on valid expressions. Polymorphism occurs during compilation through template instantiation and function overloading resolution.

2. Item 42: Understand the two meanings of typename.

  When declaring template parameters, class and typename are interchangeable.

  Use typename to identify nested dependent type names, except in base class lists or as a base class identifier in a member initialization list.

3. Item 43: Know how to access names in templatized base class.

  In derived class templates, refer to names in base class templates via a "this->" prefix, via using declarations, or via an explicit base class qualification.

4. Item 44: Factor parameter-independent code out of templates.

  Templates generate multiple classes and multiple functions, so any template code not dependent on a template parameter causes bloat.

  Bloat due to non-type template parameters can  often be eliminated by replacing template parameters with function parameters or class data members.

  Bloat due to type parameters can be reduced by sharing implementations for instantiation types with identical binary representations. 

以上是关于1.1的主要内容,如果未能解决你的问题,请参考以下文章

HTTP/1.1 和 HTTP/2 混合请求

HTTP/2 流与 HTTP/1.1 连接

HTTP/1.1 响应多个范围

如何在 HTTP/1.1 中使用 PHP cURL

如果 HTTP/1.1 客户端与仅 HTTP/2 的服务器通信会怎样,如果 HTTP/2 客户端与仅 HTTP/1.1 的服务器通信会怎样?

1.1 函数