Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 17. Type Parameters > Context Bounds

17.5. Context Bounds

A view bound T <% V requires the existence of an implicit conversion from T to V. A context bound has the form T : M, where M is another generic type. It requires that there is an “implicit value” of type T[M]. We discuss implicit values in detail in Chapter 21.

For example,


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial